diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-03-01 01:35:26 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-03-03 21:38:46 +0100 |
commit | ebdfb8cc5bab1e59b593a4ea60e55b9e7af455ef (patch) | |
tree | 893373eb7e207a9115d0df16922ee64508aaa22a /tests/cyclic/bar.py | |
parent | 050af55b77372b39fb6efecfb93bb6ee8ee425ed (diff) | |
download | factory-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.py | 2 |
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') |