mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-03 20:03:30 +03:00
Fixing pylint
This commit is contained in:
parent
8fc368519f
commit
10b23cafef
|
@ -52,6 +52,7 @@ class FilmType(DjangoObjectType):
|
||||||
|
|
||||||
def test_needs_form_class():
|
def test_needs_form_class():
|
||||||
with raises(Exception) as exc:
|
with raises(Exception) as exc:
|
||||||
|
|
||||||
class MyMutation(DjangoFormMutation):
|
class MyMutation(DjangoFormMutation):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -331,7 +332,7 @@ class ModelFormMutationTests(TestCase):
|
||||||
self.assertEqual(result.data["petMutation"]["pet"], None)
|
self.assertEqual(result.data["petMutation"]["pet"], None)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
result.data["petMutation"]["errors"],
|
result.data["petMutation"]["errors"],
|
||||||
[{"field": "age", "messages": ["Too old"], }],
|
[{"field": "age", "messages": ["Too old"],}],
|
||||||
)
|
)
|
||||||
|
|
||||||
self.assertEqual(Pet.objects.count(), 0)
|
self.assertEqual(Pet.objects.count(), 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user