Skip to content

Commit

Permalink
Fixed allow_any tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mongkok committed Aug 4, 2023
1 parent a5db342 commit f8ef841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ class AllowAnyTests(TestCase):
def info(self, user, **headers):
info_mock = super().info(user, **headers)
info_mock.field_name = "test"
info_mock.operation.operation.name = "query"
info_mock.operation.operation.value = "query"
return info_mock

def info_with_field_mock(self, user, field=None):
info_mock = self.info(user)
info_mock.schema.get_root_type.return_value = mock.Mock(
info_mock.schema.query_type = mock.Mock(
fields={
"test": field,
}
Expand Down

0 comments on commit f8ef841

Please sign in to comment.