summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2014-09-03 22:54:26 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2014-09-03 22:54:26 +0200
commit251c9ef081bdb9233b4885d23501afc3b26324c1 (patch)
tree8277cf8e82e109d1da8636cbdd9a545253d265a4
parent1a00eef263f787a9f3d98fbaa43ec30ad9ac4071 (diff)
downloadfactory-boy-251c9ef081bdb9233b4885d23501afc3b26324c1.tar
factory-boy-251c9ef081bdb9233b4885d23501afc3b26324c1.tar.gz
Fix typo in docs (Closes #157).
-rw-r--r--docs/examples.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/examples.rst b/docs/examples.rst
index ee521e3..e7f6057 100644
--- a/docs/examples.rst
+++ b/docs/examples.rst
@@ -114,9 +114,9 @@ We can now use our factories, for tests:
def test_get_profile_stats(self):
profiles = []
- profiles.extend(factories.ProfileFactory.batch_create(4))
- profiles.extend(factories.FemaleProfileFactory.batch_create(2))
- profiles.extend(factories.ProfileFactory.batch_create(2, planet="Tatooine"))
+ profiles.extend(factories.ProfileFactory.create_batch(4))
+ profiles.extend(factories.FemaleProfileFactory.create_batch(2))
+ profiles.extend(factories.ProfileFactory.create_batch(2, planet="Tatooine"))
stats = business_logic.profile_stats(profiles)
self.assertEqual({'Earth': 6, 'Mars': 2}, stats.planets)
@@ -130,7 +130,7 @@ Or for fixtures:
from . import factories
def make_objects():
- factories.ProfileFactory.batch_create(size=50)
+ factories.ProfileFactory.create_batch(size=50)
# Let's create a few, known objects.
factories.ProfileFactory(