We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 778fbd7 commit ea6fbdcCopy full SHA for ea6fbdc
graphene_sqlalchemy/tests/test_converter.py
@@ -163,7 +163,8 @@ def prop_method_2() -> ShoppingCartType | PetType:
163
field_type_1 = get_hybrid_property_type(prop_method).type
164
field_type_2 = get_hybrid_property_type(prop_method_2).type
165
166
- assert isinstance(field_type_1, graphene.Union)
+ assert issubclass(field_type_1, graphene.Union)
167
+ assert field_type_1._meta.types == [PetType, ShoppingCartType]
168
assert field_type_1 is field_type_2
169
170
0 commit comments