mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 09:42:32 +03:00
Fix non-null case
This commit is contained in:
parent
f58e47a311
commit
54630fe810
|
@ -132,7 +132,8 @@ def test_should_boolean_convert_boolean():
|
||||||
|
|
||||||
|
|
||||||
def test_should_boolean_convert_non_null_boolean():
|
def test_should_boolean_convert_non_null_boolean():
|
||||||
field = assert_conversion(models.BooleanField, graphene.NonNull, null=False)
|
field = assert_conversion(models.BooleanField, graphene.Boolean, null=False)
|
||||||
|
assert isinstance(field.type, graphene.NonNull)
|
||||||
assert field.type.of_type == graphene.Boolean
|
assert field.type.of_type == graphene.Boolean
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user