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 4ac711c commit cc45b0bCopy full SHA for cc45b0b
graphene_django/tests/test_fields.py
@@ -22,9 +22,14 @@ def test_only_django_object_types(self):
22
class Query(ObjectType):
23
something = DjangoListField(String)
24
25
- with pytest.raises(TypeError):
+ with pytest.raises(TypeError) as excinfo:
26
Schema(query=Query)
27
28
+ assert (
29
+ "Query fields cannot be resolved. DjangoListField only accepts DjangoObjectType types as underlying type"
30
+ in str(excinfo.value)
31
+ )
32
+
33
def test_only_import_paths(self):
34
list_field = DjangoListField("graphene_django.tests.schema.Human")
35
from .schema import Human
0 commit comments