Skip to content

Commit b55b4f3

Browse files
committed
tests: replace is_enum_type with assert_enumT_ype
Replicates graphql/graphql-js@a034dc2
1 parent 8b820c3 commit b55b4f3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/utilities/test_build_client_schema.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
GraphQLObjectType,
1515
GraphQLSchema,
1616
GraphQLString,
17-
is_enum_type,
17+
assert_enum_type,
1818
)
1919
from graphql.utilities import (
2020
build_schema,
@@ -332,10 +332,8 @@ def builds_a_schema_with_an_enum():
332332
second_introspection = introspection_from_schema(client_schema)
333333
assert second_introspection == introspection
334334

335-
client_food_enum = client_schema.get_type("Food")
336-
337335
# It's also an Enum type on the client.
338-
assert is_enum_type(client_food_enum)
336+
client_food_enum = assert_enum_type(client_schema.get_type("Food"))
339337

340338
values = client_food_enum.values
341339
descriptions = {name: value.description for name, value in values.items()}

0 commit comments

Comments
 (0)