summaryrefslogtreecommitdiff
path: root/tests/cyclic
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2014-05-18 12:34:19 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2014-05-18 14:18:49 +0200
commit395744736691b3412dbedaffa8735e248a70c3c1 (patch)
tree4e4e67f8a907edcad3984a843707cf9b5dcad375 /tests/cyclic
parent47b34e933f94e71e7aabd81cd1e065a807a55276 (diff)
downloadfactory-boy-395744736691b3412dbedaffa8735e248a70c3c1.tar
factory-boy-395744736691b3412dbedaffa8735e248a70c3c1.tar.gz
Switch tests to class Meta.
Diffstat (limited to 'tests/cyclic')
-rw-r--r--tests/cyclic/bar.py3
-rw-r--r--tests/cyclic/foo.py3
2 files changed, 4 insertions, 2 deletions
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)