Skip to content

Commit 666cf03

Browse files
committed
Fix test_description
1 parent 9d0b271 commit 666cf03

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

tests/pyutils/test_description.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
from contextlib import contextmanager
22
from typing import cast
33

4-
from pytest import raises
5-
64
from graphql import graphql_sync
5+
from graphql.pyutils import (
6+
Description,
7+
is_description,
8+
register_description,
9+
unregister_description,
10+
)
711
from graphql.type import (
812
GraphQLArgument,
913
GraphQLDirective,
1014
GraphQLEnumValue,
1115
GraphQLField,
1216
GraphQLInputField,
13-
GraphQLObjectType,
1417
GraphQLNamedType,
18+
GraphQLObjectType,
1519
GraphQLSchema,
1620
GraphQLString,
1721
)
18-
from graphql.pyutils import (
19-
Description,
20-
is_description,
21-
register_description,
22-
unregister_description,
23-
)
2422
from graphql.utilities import get_introspection_query, print_schema
23+
from pytest import raises
2524

2625
from ..utils import dedent
2726

@@ -43,7 +42,7 @@ def registered(base: type):
4342
try:
4443
yield None
4544
finally:
46-
unregister_description(LazyString)
45+
unregister_description(base)
4746

4847

4948
def describe_description():

0 commit comments

Comments
 (0)