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
f7c660572e
commit
94c5f7faf0
@ -451,6 +451,7 @@ class APIViewTestCases:
|
|||||||
# 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 inspect.isclass(field.type.of_type) 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):
|
||||||
|
# Union types dont' have an id or consistent values
|
||||||
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