10472 exempt permission check on graphql tests

This commit is contained in:
Arthur 2022-09-29 13:26:19 -07:00
parent 3004de4e5e
commit 3bbbc9469f
2 changed files with 3 additions and 3 deletions

View File

@ -12,12 +12,12 @@ from wireless.graphql.schema import WirelessQuery
class Query(
UsersQuery,
CircuitsQuery,
DCIMQuery,
ExtrasQuery,
IPAMQuery,
TenancyQuery,
UsersQuery,
VirtualizationQuery,
WirelessQuery,
*registry['plugins']['graphql_schemas'], # Append plugin schemas

View File

@ -467,7 +467,7 @@ class APIViewTestCases:
return query
@override_settings(LOGIN_REQUIRED=True)
@override_settings(EXEMPT_VIEW_PERMISSIONS=['*'])
@override_settings(EXEMPT_VIEW_PERMISSIONS=['*', 'auth.user'])
def test_graphql_get_object(self):
url = reverse('graphql')
field_name = self._get_graphql_base_name()
@ -493,7 +493,7 @@ class APIViewTestCases:
self.assertNotIn('errors', data)
@override_settings(LOGIN_REQUIRED=True)
@override_settings(EXEMPT_VIEW_PERMISSIONS=['*'])
@override_settings(EXEMPT_VIEW_PERMISSIONS=['*', 'auth.user'])
def test_graphql_list_objects(self):
url = reverse('graphql')
field_name = f'{self._get_graphql_base_name()}_list'