Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 9, 2021 12:26
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/041cde1fd07b7a9bdaba7498ff697bbc to your computer and use it in GitHub Desktop.
Save velotiotech/041cde1fd07b7a9bdaba7498ff697bbc to your computer and use it in GitHub Desktop.
from product.models import Category
def test_create_category(db):
category = Category.objects.create(name="Books")
assert category.name == "Books"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment