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

@ -195,11 +195,15 @@ async def test_queryset_methods():
comps = await Company.objects.all()
assert [comp.saved for comp in comps]
comp2, created = await Company.objects.get_or_create(name="Banzai_new", founded=2001)
comp2, created = await Company.objects.get_or_create(
name="Banzai_new", founded=2001
)
assert comp2.saved
assert created is True
comp3, created = await Company.objects.get_or_create(name="Banzai", founded=1988)
comp3, created = await Company.objects.get_or_create(
name="Banzai", founded=1988
)
assert comp3.saved
assert comp3.pk == comp.pk
assert created is False