Reformat project

This commit is contained in:
Mojix Coder
2022-02-01 10:33:29 +03:30
parent 0791e7cc4b
commit 2517572a14
4 changed files with 11 additions and 5 deletions

View File

@ -107,7 +107,9 @@ async def test_queryset_methods():
assert len(post.categories) == 1
assert created is False
category, created = await post.categories.get_or_create(name="Breaking News")
category, created = await post.categories.get_or_create(
name="Breaking News"
)
assert category != breaking
assert category.pk is not None
assert len(post.categories) == 2

View File

@ -209,7 +209,7 @@ async def test_get_or_create_with_defaults():
assert book2.author == "Mojix"
assert book2.genre == "Historic"
assert await Book.objects.count() == 1
@pytest.mark.asyncio
async def test_update_or_create():