Fix non-null case

This commit is contained in:
Jonathan Kim 2019-12-26 12:30:03 +00:00
parent f58e47a311
commit 54630fe810

View File

@ -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