summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polyconseil.fr>2011-09-06 15:04:06 +0200
committerRaphaël Barrois <raphael.barrois@polyconseil.fr>2011-09-06 15:04:06 +0200
commitd17972e3e21c14ecca91e4238fa0726bd1a68a23 (patch)
tree0ad1296d17f468511e0aade1044b514cfd0328ca
parentfc2ee21374aa175521aaf1f164424a24c518c910 (diff)
downloadfactory-boy-d17972e3e21c14ecca91e4238fa0726bd1a68a23.tar
factory-boy-d17972e3e21c14ecca91e4238fa0726bd1a68a23.tar.gz
Bugfix for stub.
Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
-rw-r--r--factory/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/factory/base.py b/factory/base.py
index a18c73b..e5729de 100644
--- a/factory/base.py
+++ b/factory/base.py
@@ -194,7 +194,7 @@ class BaseFactory(object):
@classmethod
def stub(cls, **kwargs):
stub_object = StubObject()
- for name, value in cls.attributes(**kwargs).iteritems():
+ for name, value in cls.attributes(create=False, extra=kwargs).iteritems():
setattr(stub_object, name, value)
return stub_object