diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-05-18 12:34:19 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-05-18 14:18:49 +0200 |
commit | 395744736691b3412dbedaffa8735e248a70c3c1 (patch) | |
tree | 4e4e67f8a907edcad3984a843707cf9b5dcad375 /factory/mongoengine.py | |
parent | 47b34e933f94e71e7aabd81cd1e065a807a55276 (diff) | |
download | factory-boy-395744736691b3412dbedaffa8735e248a70c3c1.tar factory-boy-395744736691b3412dbedaffa8735e248a70c3c1.tar.gz |
Switch tests to class Meta.
Diffstat (limited to 'factory/mongoengine.py')
-rw-r--r-- | factory/mongoengine.py | 4 |
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): |