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