From 7fe9dcaa8494e73d57613d1288b4f86c4cba5bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Tue, 17 Sep 2013 01:12:48 +0200 Subject: 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. --- tests/test_alchemy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_alchemy.py') 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): -- cgit v1.2.3