mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-05 21:03:13 +03:00
Fix B015 Pointless comparison
This commit is contained in:
parent
47004eedec
commit
f0aca15c7b
|
@ -279,7 +279,7 @@ def test_model_form_mutation_mutate_invalid_form():
|
||||||
result = PetMutation.mutate_and_get_payload(None, None)
|
result = PetMutation.mutate_and_get_payload(None, None)
|
||||||
|
|
||||||
# A pet was not created
|
# A pet was not created
|
||||||
Pet.objects.count() == 0
|
assert Pet.objects.count() == 0
|
||||||
|
|
||||||
fields_w_error = [e.field for e in result.errors]
|
fields_w_error = [e.field for e in result.errors]
|
||||||
assert len(result.errors) == 2
|
assert len(result.errors) == 2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user