summaryrefslogtreecommitdiff
path: root/factory/base.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polyconseil.fr>2011-09-06 14:24:11 +0200
committerRaphaël Barrois <raphael.barrois@polyconseil.fr>2011-09-06 14:24:11 +0200
commitfc2ee21374aa175521aaf1f164424a24c518c910 (patch)
treeb9bd265c977c9c4ca3f42f3642a749f84f9d22b4 /factory/base.py
parent5c770cb1918d8067db69d3c880a9a6ad1d31ddb8 (diff)
downloadfactory-boy-fc2ee21374aa175521aaf1f164424a24c518c910.tar
factory-boy-fc2ee21374aa175521aaf1f164424a24c518c910.tar.gz
Update all tests, and fix a couple of bugs.
Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
Diffstat (limited to 'factory/base.py')
-rw-r--r--factory/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/factory/base.py b/factory/base.py
index 34c8470..a18c73b 100644
--- a/factory/base.py
+++ b/factory/base.py
@@ -247,11 +247,11 @@ class Factory(BaseFactory):
@classmethod
def build(cls, **kwargs):
- return cls._build(**cls.attributes(create=False, **kwargs))
+ return cls._build(**cls.attributes(create=False, extra=kwargs))
@classmethod
def create(cls, **kwargs):
- return cls._create(**cls.attributes(create=True, **kwargs))
+ return cls._create(**cls.attributes(create=True, extra=kwargs))
class DjangoModelFactory(Factory):