Generalize decorator code.

This commit is contained in:
Steve Pulec 2017-02-12 00:22:29 -05:00
commit d3df810065
21 changed files with 53 additions and 160 deletions

View file

@ -1,12 +1,6 @@
from __future__ import unicode_literals
from .models import sqs_backends
from ..core.models import MockAWS
from ..core.models import MockAWS, base_decorator
sqs_backend = sqs_backends['us-east-1']
def mock_sqs(func=None):
if func:
return MockAWS(sqs_backends)(func)
else:
return MockAWS(sqs_backends)
mock_sqs = base_decorator(sqs_backends)