mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 00:36:11 -06:00
9478 fix tests
This commit is contained in:
parent
bd2de21d93
commit
f7c660572e
@ -1,3 +1,4 @@
|
|||||||
|
import inspect
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
@ -449,7 +450,7 @@ class APIViewTestCases:
|
|||||||
if type(field) is GQLDynamic:
|
if type(field) is GQLDynamic:
|
||||||
# Dynamic fields must specify a subselection
|
# Dynamic fields must specify a subselection
|
||||||
fields_string += f'{field_name} {{ id }}\n'
|
fields_string += f'{field_name} {{ id }}\n'
|
||||||
elif type(field.type) is GQLList and issubclass(field.type.of_type, GQLUnion):
|
elif type(field.type) is GQLList and inspect.isclass(field.type.of_type) and issubclass(field.type.of_type, GQLUnion):
|
||||||
continue
|
continue
|
||||||
elif type(field.type) is GQLList and field_name != 'choices':
|
elif type(field.type) is GQLList and field_name != 'choices':
|
||||||
# TODO: Come up with something more elegant
|
# TODO: Come up with something more elegant
|
||||||
|
Loading…
Reference in New Issue
Block a user