Created
January 4, 2021 21:10
-
-
Save klement97/246435419864d1038eabb06b50268f1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create_pizza(number_of_toppings: int, **kwargs) -> Pizza: | |
pizza = baker.make('order.Pizza', **kwargs) | |
for _ in range(number_of_toppings): | |
pizza.toppings.add(baker.make('order.Topping')) | |
return pizza |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment