diff --git a/graphene_django/tests/test_utils.py b/graphene_django/tests/test_utils.py index f5a8b05..e7aa027 100644 --- a/graphene_django/tests/test_utils.py +++ b/graphene_django/tests/test_utils.py @@ -51,7 +51,9 @@ def test_graphql_test_case_op_name(post_mock): pass tc = TestClass() + tc._pre_setup() tc.setUpClass() + tc.query("query { }", op_name="QueryName") body = json.loads(post_mock.call_args.args[1]) # `operationName` field from https://graphql.org/learn/serving-over-http/#post-request