summaryrefslogtreecommitdiff
path: root/factory/alchemy.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2014-11-18 00:35:19 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2014-11-18 00:39:52 +0100
commit336ea5ac8b2d922fb54f99edd55d4773dd126934 (patch)
treef46ee3cbbd9f1d6ab4ad4af122b66371cdc2eb85 /factory/alchemy.py
parent13d310fa14f4e4b9a559f8b7887f2a2492357013 (diff)
downloadfactory-boy-336ea5ac8b2d922fb54f99edd55d4773dd126934.tar
factory-boy-336ea5ac8b2d922fb54f99edd55d4773dd126934.tar.gz
Remove deprecated features.
This disables the ``FACTORY_FOR`` syntax and related parameters, that should be declared through ``class Meta``.
Diffstat (limited to 'factory/alchemy.py')
-rw-r--r--factory/alchemy.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/factory/alchemy.py b/factory/alchemy.py
index 2cd28bb..6408393 100644
--- a/factory/alchemy.py
+++ b/factory/alchemy.py
@@ -38,11 +38,6 @@ class SQLAlchemyModelFactory(base.Factory):
class Meta:
abstract = True
- _OLDSTYLE_ATTRIBUTES = base.Factory._OLDSTYLE_ATTRIBUTES.copy()
- _OLDSTYLE_ATTRIBUTES.update({
- 'FACTORY_SESSION': 'sqlalchemy_session',
- })
-
@classmethod
def _create(cls, model_class, *args, **kwargs):
"""Create an instance of the model, and save it to the database."""