Created
June 9, 2021 12:28
-
-
Save velotiotech/03030b31b4901aaba760065346570814 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
import pytest | |
from product.models import Category | |
@pytest.fixture | |
def category(db) -> Category: | |
return Category.objects.create( | |
name="Books", description="Category of Books", icon="books.png" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment