mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-10-31 07:57:43 +03:00 
			
		
		
		
	small fixes for Factory docs and examples
This commit is contained in:
		
							parent
							
								
									2e8f59115f
								
							
						
					
					
						commit
						776bbc7dde
					
				|  | @ -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 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user