summaryrefslogtreecommitdiff
path: root/factory/mongoengine.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2014-05-18 12:34:19 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2014-05-18 14:18:49 +0200
commit395744736691b3412dbedaffa8735e248a70c3c1 (patch)
tree4e4e67f8a907edcad3984a843707cf9b5dcad375 /factory/mongoengine.py
parent47b34e933f94e71e7aabd81cd1e065a807a55276 (diff)
downloadfactory-boy-395744736691b3412dbedaffa8735e248a70c3c1.tar
factory-boy-395744736691b3412dbedaffa8735e248a70c3c1.tar.gz
Switch tests to class Meta.
Diffstat (limited to 'factory/mongoengine.py')
-rw-r--r--factory/mongoengine.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/factory/mongoengine.py b/factory/mongoengine.py
index 462f5f2..729ebb1 100644
--- a/factory/mongoengine.py
+++ b/factory/mongoengine.py
@@ -32,7 +32,9 @@ from . import base
class MongoEngineFactory(base.Factory):
"""Factory for mongoengine objects."""
- ABSTRACT_FACTORY = True
+
+ class Meta:
+ abstract = True
@classmethod
def _build(cls, target_class, *args, **kwargs):