From 048fb1cc935a2ccbc5ca7af81c9390e218a1080b Mon Sep 17 00:00:00 2001 From: Raphaël Barrois Date: Wed, 14 Nov 2012 23:51:09 +0100 Subject: Rename ABSTRACT_FACTORY to FACTORY_ABSTRACT. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And add a deprecation warning too. Signed-off-by: Raphaël Barrois --- tests/test_base.py | 2 +- tests/test_using.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_base.py b/tests/test_base.py index c8109db..63fc62b 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -47,7 +47,7 @@ class FakeDjangoModel(object): self.id = None class FakeModelFactory(base.Factory): - ABSTRACT_FACTORY = True + FACTORY_ABSTRACT = True @classmethod def _create(cls, target_class, *args, **kwargs): diff --git a/tests/test_using.py b/tests/test_using.py index f489f28..e5ae374 100644 --- a/tests/test_using.py +++ b/tests/test_using.py @@ -62,7 +62,7 @@ class FakeModel(object): class FakeModelFactory(factory.Factory): - ABSTRACT_FACTORY = True + FACTORY_ABSTRACT = True @classmethod def _create(cls, target_class, *args, **kwargs): @@ -251,7 +251,7 @@ class UsingFactoryTestCase(unittest.TestCase): def test_abstract(self): class SomeAbstractFactory(factory.Factory): - ABSTRACT_FACTORY = True + FACTORY_ABSTRACT = True one = 'one' class InheritedFactory(SomeAbstractFactory): -- cgit v1.2.3