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 sns_backends
from ..core.models import MockAWS
from ..core.models import MockAWS, base_decorator
sns_backend = sns_backends['us-east-1']
def mock_sns(func=None):
if func:
return MockAWS(sns_backends)(func)
else:
return MockAWS(sns_backends)
mock_sns = base_decorator(sns_backends)