graphene/tests/core/test_scalars.py

17 lines
348 B
Python
Raw Normal View History

from graphene.core.scalars import GraphQLSkipField
2015-10-11 00:53:46 +03:00
def test_skipfield_serialize():
f = GraphQLSkipField
assert f.serialize('a') is None
def test_skipfield_parse_value():
f = GraphQLSkipField
assert f.parse_value('a') is None
def test_skipfield_parse_literal():
f = GraphQLSkipField
assert f.parse_literal('a') is None