From 395744736691b3412dbedaffa8735e248a70c3c1 Mon Sep 17 00:00:00 2001 From: Raphaƫl Barrois Date: Sun, 18 May 2014 12:34:19 +0200 Subject: Switch tests to class Meta. --- tests/cyclic/bar.py | 3 ++- tests/cyclic/foo.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/cyclic') diff --git a/tests/cyclic/bar.py b/tests/cyclic/bar.py index fed0602..8674c4d 100644 --- a/tests/cyclic/bar.py +++ b/tests/cyclic/bar.py @@ -30,7 +30,8 @@ class Bar(object): class BarFactory(factory.Factory): - FACTORY_FOR = Bar + class Meta: + target = Bar y = 13 foo = factory.SubFactory('cyclic.foo.FooFactory') diff --git a/tests/cyclic/foo.py b/tests/cyclic/foo.py index e584ed1..5310b1e 100644 --- a/tests/cyclic/foo.py +++ b/tests/cyclic/foo.py @@ -32,7 +32,8 @@ class Foo(object): class FooFactory(factory.Factory): - FACTORY_FOR = Foo + class Meta: + target = Foo x = 42 bar = factory.SubFactory(bar_mod.BarFactory) -- cgit v1.2.3