aboutsummaryrefslogtreecommitdiff
path: root/tests/cyclic
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2014-05-18 15:10:56 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2014-05-18 15:10:56 +0200
commit3a5709527d362a960a1a35769375412e4536839e (patch)
tree0d16ff742914585556ccc55ef75cbec162f4a271 /tests/cyclic
parentb245a83019a8735d0c80c07275cd426bc60dd9f8 (diff)
downloadfactory-boy-3a5709527d362a960a1a35769375412e4536839e.tar
factory-boy-3a5709527d362a960a1a35769375412e4536839e.tar.gz
Rename 'target' to 'model'.
Diffstat (limited to 'tests/cyclic')
-rw-r--r--tests/cyclic/bar.py2
-rw-r--r--tests/cyclic/foo.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/cyclic/bar.py b/tests/cyclic/bar.py
index 8674c4d..a5e6bf1 100644
--- a/tests/cyclic/bar.py
+++ b/tests/cyclic/bar.py
@@ -31,7 +31,7 @@ class Bar(object):
class BarFactory(factory.Factory):
class Meta:
- target = Bar
+ model = Bar
y = 13
foo = factory.SubFactory('cyclic.foo.FooFactory')
diff --git a/tests/cyclic/foo.py b/tests/cyclic/foo.py
index 5310b1e..18de362 100644
--- a/tests/cyclic/foo.py
+++ b/tests/cyclic/foo.py
@@ -33,7 +33,7 @@ class Foo(object):
class FooFactory(factory.Factory):
class Meta:
- target = Foo
+ model = Foo
x = 42
bar = factory.SubFactory(bar_mod.BarFactory)