diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-05-18 15:10:56 +0200 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2014-05-18 15:10:56 +0200 |
commit | 3a5709527d362a960a1a35769375412e4536839e (patch) | |
tree | 0d16ff742914585556ccc55ef75cbec162f4a271 /tests/test_mongoengine.py | |
parent | b245a83019a8735d0c80c07275cd426bc60dd9f8 (diff) | |
download | factory-boy-3a5709527d362a960a1a35769375412e4536839e.tar factory-boy-3a5709527d362a960a1a35769375412e4536839e.tar.gz |
Rename 'target' to 'model'.
Diffstat (limited to 'tests/test_mongoengine.py')
-rw-r--r-- | tests/test_mongoengine.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_mongoengine.py b/tests/test_mongoengine.py index 39594c0..988c179 100644 --- a/tests/test_mongoengine.py +++ b/tests/test_mongoengine.py @@ -43,13 +43,13 @@ if mongoengine: class AddressFactory(MongoEngineFactory): class Meta: - target = Address + model = Address street = factory.Sequence(lambda n: 'street%d' % n) class PersonFactory(MongoEngineFactory): class Meta: - target = Person + model = Person name = factory.Sequence(lambda n: 'name%d' % n) address = factory.SubFactory(AddressFactory) |