Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 9, 2021 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/03030b31b4901aaba760065346570814 to your computer and use it in GitHub Desktop.
Save velotiotech/03030b31b4901aaba760065346570814 to your computer and use it in GitHub Desktop.
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