summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2015-03-26 23:04:41 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2015-03-26 23:04:41 +0100
commita456a9e3f440e5f61497e97d75dd0a15efe71a8d (patch)
tree43817d30fb81b64bc4fa26a331bda72e48b3d608 /factory
parent636ca46951d710a4b9d9fd61ec1da02294806d3d (diff)
downloadfactory-boy-a456a9e3f440e5f61497e97d75dd0a15efe71a8d.tar
factory-boy-a456a9e3f440e5f61497e97d75dd0a15efe71a8d.tar.gz
Remove limitations of factory.StubFactory (Closes #131).
``StubFactory.build()`` is now supported, and maps to ``StubFactory.stub()``.
Diffstat (limited to 'factory')
-rw-r--r--factory/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/factory/base.py b/factory/base.py
index 7215f00..4c3e0ad 100644
--- a/factory/base.py
+++ b/factory/base.py
@@ -683,7 +683,7 @@ class StubFactory(Factory):
@classmethod
def build(cls, **kwargs):
- raise UnsupportedStrategy()
+ return cls.stub(**kwargs)
@classmethod
def create(cls, **kwargs):