diff options
author | Raphaël Barrois <raphael.barrois@polyconseil.fr> | 2012-04-15 10:46:08 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polyconseil.fr> | 2012-04-15 10:46:08 +0200 |
commit | f87f03b583c22e810dced73ed277910d9bc8232a (patch) | |
tree | ae1684e3ec09d4cbe79df336924cc134e7a1e146 /tests/test_using.py | |
parent | f8a93d6599b71123789541adf9658cd095402f0f (diff) | |
download | factory-boy-f87f03b583c22e810dced73ed277910d9bc8232a.tar factory-boy-f87f03b583c22e810dced73ed277910d9bc8232a.tar.gz |
Rename post_declaration to post_generation.
Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
Diffstat (limited to 'tests/test_using.py')
-rw-r--r-- | tests/test_using.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_using.py b/tests/test_using.py index 13f23dc..20acd79 100644 --- a/tests/test_using.py +++ b/tests/test_using.py @@ -835,12 +835,12 @@ class IteratorTestCase(unittest.TestCase): self.assertEqual(i % 5, obj.one) -class PostDeclarationHookTestCase(unittest.TestCase): - def test_post_declaration(self): +class PostGenerationDeclarationTestCase(unittest.TestCase): + def test_post_generation(self): class TestObjectFactory(factory.Factory): one = 1 - @factory.post_declaration() + @factory.post_generation() def incr_one(self, _create, _increment): self.one += 1 @@ -852,11 +852,11 @@ class PostDeclarationHookTestCase(unittest.TestCase): self.assertEqual(3, obj.one) self.assertFalse(hasattr(obj, 'incr_one')) - def test_post_declaration_extraction(self): + def test_post_generation_extraction(self): class TestObjectFactory(factory.Factory): one = 1 - @factory.post_declaration() + @factory.post_generation() def incr_one(self, _create, increment=1): self.one += increment |