summaryrefslogtreecommitdiff
path: root/factory/__init__.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2012-01-06 23:39:33 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2012-01-06 23:39:33 +0100
commit8563a98022b8b3e855bf036a57aad4fd86319eff (patch)
tree282264bb40e9aef33f2489b018275735a943ce54 /factory/__init__.py
parent105f2fe021a71e1f03650e3bcdd657152fe19a20 (diff)
downloadfactory-boy-8563a98022b8b3e855bf036a57aad4fd86319eff.tar
factory-boy-8563a98022b8b3e855bf036a57aad4fd86319eff.tar.gz
Add factory.build(), factory.create(), factory.stub() methods.
Those are shortcuts for writing a full Factory class. Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'factory/__init__.py')
-rw-r--r--factory/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/factory/__init__.py b/factory/__init__.py
index efc0001..f2652f2 100644
--- a/factory/__init__.py
+++ b/factory/__init__.py
@@ -28,6 +28,10 @@ from base import (
StubFactory,
DjangoModelFactory,
+ build,
+ create,
+ stub,
+
BUILD_STRATEGY,
CREATE_STRATEGY,
STUB_STRATEGY,