Beispiel #1
0
def test_introspection_check_returns_false_for_non_introspection_field():
    path = Mock(key="__type")
    info = Mock(path=path)
    assert is_introspection_field(info)
Beispiel #2
0
def test_introspection_check_returns_false_for__field():
    path = Mock(key="name", prev=Mock(key="user", prev=None))
    info = Mock(path=path)
    assert not is_introspection_field(info)
Beispiel #3
0
def test_introspection_check_returns_true_for_child_field_of_introspection_field(
):
    path = Mock(key="name", prev=Mock(key="__type"))
    info = Mock(path=path)
    assert is_introspection_field(info)