diff --git a/netbox/utilities/testing/api.py b/netbox/utilities/testing/api.py index fab0e4db5..8815ede1f 100644 --- a/netbox/utilities/testing/api.py +++ b/netbox/utilities/testing/api.py @@ -451,6 +451,7 @@ class APIViewTestCases: # Dynamic fields must specify a subselection 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): + # Union types dont' have an id or consistent values continue elif type(field.type) is GQLList and field_name != 'choices': # TODO: Come up with something more elegant