From 776bbc7dde734e3097e3049035ccab0187ccdaa9 Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Fri, 5 Jun 2015 11:39:01 +0300 Subject: [PATCH] small fixes for Factory docs and examples --- docs/providers.rst | 2 +- examples/providers/factory_init_context_injections.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/providers.rst b/docs/providers.rst index d8b59e6d..75e46a2d 100644 --- a/docs/providers.rst +++ b/docs/providers.rst @@ -172,7 +172,7 @@ useful for testing). So, please, follow the example below: # Creating several User objects: user1 = users_factory(1) # Same as: User(1, main_photo=Photo()) - user2 = users_factory(2) # Same as: User(1, main_photo=Photo()) + user2 = users_factory(2) # Same as: User(2, main_photo=Photo()) # Making some asserts: assert user1.id == 1 diff --git a/examples/providers/factory_init_context_injections.py b/examples/providers/factory_init_context_injections.py index 870ce656..8349c877 100644 --- a/examples/providers/factory_init_context_injections.py +++ b/examples/providers/factory_init_context_injections.py @@ -32,7 +32,7 @@ users_factory = Factory(User, # Creating several User objects: user1 = users_factory(1) # Same as: User(1, main_photo=Photo()) -user2 = users_factory(2) # Same as: User(1, main_photo=Photo()) +user2 = users_factory(2) # Same as: User(2, main_photo=Photo()) # Making some asserts: assert user1.id == 1