summaryrefslogtreecommitdiff
path: root/tests/test_alchemy.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2014-05-18 12:17:19 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2014-05-18 14:18:49 +0200
commit92bb395e7f6d422ce239b2ef7303424fde43ab1d (patch)
treeedd6b7d56be4a093b12d987663c1d6085358dd95 /tests/test_alchemy.py
parent80eaa0c8711f2c3ca82eb7953db49c7c61bd9ffa (diff)
downloadfactory-boy-92bb395e7f6d422ce239b2ef7303424fde43ab1d.tar
factory-boy-92bb395e7f6d422ce239b2ef7303424fde43ab1d.tar.gz
Migrate factory.alchemy to class Meta
Diffstat (limited to 'tests/test_alchemy.py')
-rw-r--r--tests/test_alchemy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_alchemy.py b/tests/test_alchemy.py
index 4255417..c94e425 100644
--- a/tests/test_alchemy.py
+++ b/tests/test_alchemy.py
@@ -66,7 +66,7 @@ class SQLAlchemyPkSequenceTestCase(unittest.TestCase):
def setUp(self):
super(SQLAlchemyPkSequenceTestCase, self).setUp()
StandardFactory.reset_sequence(1)
- NonIntegerPkFactory.FACTORY_SESSION.rollback()
+ NonIntegerPkFactory._meta.sqlalchemy_session.rollback()
def test_pk_first(self):
std = StandardFactory.build()
@@ -104,7 +104,7 @@ class SQLAlchemyNonIntegerPkTestCase(unittest.TestCase):
def setUp(self):
super(SQLAlchemyNonIntegerPkTestCase, self).setUp()
NonIntegerPkFactory.reset_sequence()
- NonIntegerPkFactory.FACTORY_SESSION.rollback()
+ NonIntegerPkFactory._meta.sqlalchemy_session.rollback()
def test_first(self):
nonint = NonIntegerPkFactory.build()