summaryrefslogtreecommitdiff
path: root/factory/__init__.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2015-05-31 10:57:53 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2015-05-31 10:57:53 +0100
commit9246fa6d26ca655c02ae37bbfc389d9f34dfba16 (patch)
tree4cfb1c34c94b83783ef9c5c27c56b9e178779df2 /factory/__init__.py
parent0b5270eab393fad20faa7a6a9720af18c97b1773 (diff)
downloadfactory-boy-9246fa6d26ca655c02ae37bbfc389d9f34dfba16.tar
factory-boy-9246fa6d26ca655c02ae37bbfc389d9f34dfba16.tar.gz
Improve ORM layer import paths (Closes #186).
You may now use the following code: import factory factory.alchemy.SQLAlchemyModelFactory factory.django.DjangoModelFactory factory.mongoengine.MongoEngineFactory
Diffstat (limited to 'factory/__init__.py')
-rw-r--r--factory/__init__.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/factory/__init__.py b/factory/__init__.py
index 80eb6a8..843cf99 100644
--- a/factory/__init__.py
+++ b/factory/__init__.py
@@ -40,9 +40,6 @@ from .base import (
use_strategy,
)
-# Backward compatibility; this should be removed soon.
-from .mogo import MogoFactory
-from .django import DjangoModelFactory
from .faker import Faker
from .declarations import (
@@ -84,3 +81,12 @@ from .helpers import (
post_generation,
)
+# Backward compatibility; this should be removed soon.
+from . import alchemy
+from . import django
+from . import mogo
+from . import mongoengine
+
+MogoFactory = mogo.MogoFactory
+DjangoModelFactory = django.DjangoModelFactory
+