summaryrefslogtreecommitdiff
path: root/tests/cyclic/bar.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-01 01:35:26 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-03 21:38:46 +0100
commitebdfb8cc5bab1e59b593a4ea60e55b9e7af455ef (patch)
tree893373eb7e207a9115d0df16922ee64508aaa22a /tests/cyclic/bar.py
parent050af55b77372b39fb6efecfb93bb6ee8ee425ed (diff)
downloadfactory-boy-ebdfb8cc5bab1e59b593a4ea60e55b9e7af455ef.tar
factory-boy-ebdfb8cc5bab1e59b593a4ea60e55b9e7af455ef.tar.gz
Improve Iterator and SubFactory declarations.
* Iterator now cycles by default * Iterator can be provided with a custom getter * SubFactory accepts a factory import path as well Deprecates: * InfiniteIterator * CircularSubFactory Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'tests/cyclic/bar.py')
-rw-r--r--tests/cyclic/bar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cyclic/bar.py b/tests/cyclic/bar.py
index a8c9670..fed0602 100644
--- a/tests/cyclic/bar.py
+++ b/tests/cyclic/bar.py
@@ -33,5 +33,5 @@ class BarFactory(factory.Factory):
FACTORY_FOR = Bar
y = 13
- foo = factory.CircularSubFactory('cyclic.foo', 'FooFactory')
+ foo = factory.SubFactory('cyclic.foo.FooFactory')