By having models.py as one big file it causes to easily create circular dependencies. With the current setup it is not possible to re-use DynamoType. This refactor moves it out to its own file while trying to keep the structure as much as it is.
8 lines
361 B
Python
8 lines
361 B
Python
from __future__ import unicode_literals
|
|
from moto.dynamodb2.models import dynamodb_backends as dynamodb_backends2
|
|
from ..core.models import base_decorator, deprecated_base_decorator
|
|
|
|
dynamodb_backend2 = dynamodb_backends2["us-east-1"]
|
|
mock_dynamodb2 = base_decorator(dynamodb_backends2)
|
|
mock_dynamodb2_deprecated = deprecated_base_decorator(dynamodb_backends2)
|