9478 fix tests

This commit is contained in:
Arthur 2022-10-05 15:16:38 -07:00
parent f7c660572e
commit 94c5f7faf0

View File

@ -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