Skip to content

Commit dc86a6e

Browse files
committed
Remove duplicate NonNull test
Replicates graphql/graphql-js@948c9cf
1 parent 850eddf commit dc86a6e

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ a query language for APIs created by Facebook.
1313
[![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
1414

1515
The current version 1.0.2 of GraphQL-core-next is up-to-date with GraphQL.js version
16-
14.1.1. All parts of the API are covered by an extensive test suite of currently 1727
16+
14.1.1. All parts of the API are covered by an extensive test suite of currently 1726
1717
unit tests.
1818

1919

tests/type/test_definition.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,6 @@ def stringifies_simple_types():
111111
assert str(ListOfNonNullScalarsType) == "[Scalar!]"
112112
assert str(GraphQLList(ListOfScalarsType)) == "[[Scalar]]"
113113

114-
def prohibits_nesting_nonnull_inside_nonnull():
115-
with raises(TypeError) as exc_info:
116-
# noinspection PyTypeChecker
117-
GraphQLNonNull(GraphQLNonNull(NonNullScalarType))
118-
msg = str(exc_info.value)
119-
assert msg == (
120-
"Can only create NonNull of a Nullable GraphQLType but got: Scalar!."
121-
)
122-
123114
def allows_a_thunk_for_union_member_types():
124115
union = GraphQLUnionType("ThunkUnion", lambda: [ObjectType])
125116

0 commit comments

Comments
 (0)