mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-13 19:18:16 -06:00
15809 fix tests
This commit is contained in:
parent
c80953fb88
commit
fa57c2229a
@ -469,6 +469,9 @@ class APIViewTestCases:
|
|||||||
elif type(field.type) is StrawberryUnion:
|
elif type(field.type) is StrawberryUnion:
|
||||||
# this would require a fragment query
|
# this would require a fragment query
|
||||||
continue
|
continue
|
||||||
|
elif type(field.type) is StrawberryOptional and type(field.type.of_type) is StrawberryUnion:
|
||||||
|
# this would require a fragment query
|
||||||
|
continue
|
||||||
elif type(field.type) is StrawberryOptional and type(field.type.of_type) is LazyType:
|
elif type(field.type) is StrawberryOptional and type(field.type.of_type) is LazyType:
|
||||||
fields_string += f'{field.name} {{ id }}\n'
|
fields_string += f'{field.name} {{ id }}\n'
|
||||||
elif hasattr(field, 'is_relation') and field.is_relation:
|
elif hasattr(field, 'is_relation') and field.is_relation:
|
||||||
|
Loading…
Reference in New Issue
Block a user