diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-09-17 01:12:48 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-09-17 01:12:48 +0200 |
commit | 7fe9dcaa8494e73d57613d1288b4f86c4cba5bf0 (patch) | |
tree | 5f7c3728caeb67609be6e7ba17e03b2fa93dbc22 /tests/test_alchemy.py | |
parent | a8742c973db224968b74bb054027130b2ab458e0 (diff) | |
download | factory-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.py | 2 |
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): |