From 480c1bba1468852d41f2f656fd27ad82e8f30047 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Sat, 18 Feb 2017 09:24:09 -0500 Subject: [PATCH] Add rest of deprecated decorators. --- moto/__init__.py | 8 ++++---- moto/opsworks/__init__.py | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/moto/__init__.py b/moto/__init__.py index 4accf1d0c..5a16a0a8e 100644 --- a/moto/__init__.py +++ b/moto/__init__.py @@ -5,20 +5,20 @@ import logging __title__ = 'moto' __version__ = '0.4.31' -from .apigateway import mock_apigateway # flake8: noqa +from .apigateway import mock_apigateway, mock_apigateway_deprecated # flake8: noqa from .autoscaling import mock_autoscaling, mock_autoscaling_deprecated # flake8: noqa -from .awslambda import mock_lambda # flake8: noqa +from .awslambda import mock_lambda, mock_lambda_deprecated # flake8: noqa from .cloudformation import mock_cloudformation, mock_cloudformation_deprecated # flake8: noqa from .cloudwatch import mock_cloudwatch, mock_cloudwatch_deprecated # flake8: noqa from .datapipeline import mock_datapipeline, mock_datapipeline_deprecated # flake8: noqa from .dynamodb import mock_dynamodb, mock_dynamodb_deprecated # flake8: noqa from .dynamodb2 import mock_dynamodb2, mock_dynamodb2_deprecated # flake8: noqa from .ec2 import mock_ec2, mock_ec2_deprecated # flake8: noqa -from .ecs import mock_ecs # flake8: noqa +from .ecs import mock_ecs, mock_ecs_deprecated # flake8: noqa from .elb import mock_elb, mock_elb_deprecated # flake8: noqa from .emr import mock_emr, mock_emr_deprecated # flake8: noqa from .glacier import mock_glacier, mock_glacier_deprecated # flake8: noqa -from .opsworks import mock_opsworks # flake8: noqa +from .opsworks import mock_opsworks, mock_opsworks_deprecated # flake8: noqa from .iam import mock_iam, mock_iam_deprecated # flake8: noqa from .kinesis import mock_kinesis, mock_kinesis_deprecated # flake8: noqa from .kms import mock_kms, mock_kms_deprecated # flake8: noqa diff --git a/moto/opsworks/__init__.py b/moto/opsworks/__init__.py index 75f49eba5..d2da1a6a8 100644 --- a/moto/opsworks/__init__.py +++ b/moto/opsworks/__init__.py @@ -4,3 +4,4 @@ from ..core.models import MockAWS, base_decorator, HttprettyMockAWS, deprecated_ opsworks_backend = opsworks_backends['us-east-1'] mock_opsworks = base_decorator(opsworks_backends) +mock_opsworks_deprecated = deprecated_base_decorator(opsworks_backends)