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 8b820c3 commit b55b4f3Copy full SHA for b55b4f3
tests/utilities/test_build_client_schema.py
@@ -14,7 +14,7 @@
14
GraphQLObjectType,
15
GraphQLSchema,
16
GraphQLString,
17
- is_enum_type,
+ assert_enum_type,
18
)
19
from graphql.utilities import (
20
build_schema,
@@ -332,10 +332,8 @@ def builds_a_schema_with_an_enum():
332
second_introspection = introspection_from_schema(client_schema)
333
assert second_introspection == introspection
334
335
- client_food_enum = client_schema.get_type("Food")
336
-
337
# It's also an Enum type on the client.
338
- assert is_enum_type(client_food_enum)
+ client_food_enum = assert_enum_type(client_schema.get_type("Food"))
339
340
values = client_food_enum.values
341
descriptions = {name: value.description for name, value in values.items()}
0 commit comments