summaryrefslogtreecommitdiff
path: root/tests/test_alchemy.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-09-17 01:12:48 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-09-17 01:12:48 +0200
commit7fe9dcaa8494e73d57613d1288b4f86c4cba5bf0 (patch)
tree5f7c3728caeb67609be6e7ba17e03b2fa93dbc22 /tests/test_alchemy.py
parenta8742c973db224968b74bb054027130b2ab458e0 (diff)
downloadfactory-boy-7fe9dcaa8494e73d57613d1288b4f86c4cba5bf0.tar
factory-boy-7fe9dcaa8494e73d57613d1288b4f86c4cba5bf0.tar.gz
Properly handle Sequence & inheritance (Closes #93).
There was also a nasty bug: with class FactoryB(FactoryA), FactoryB's sequence counter started at the value of FactoryA's counter when FactoryB was first called.
Diffstat (limited to 'tests/test_alchemy.py')
-rw-r--r--tests/test_alchemy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_alchemy.py b/tests/test_alchemy.py
index cfbc835..4255417 100644
--- a/tests/test_alchemy.py
+++ b/tests/test_alchemy.py
@@ -65,7 +65,7 @@ class SQLAlchemyPkSequenceTestCase(unittest.TestCase):
def setUp(self):
super(SQLAlchemyPkSequenceTestCase, self).setUp()
- StandardFactory.reset_sequence()
+ StandardFactory.reset_sequence(1)
NonIntegerPkFactory.FACTORY_SESSION.rollback()
def test_pk_first(self):