コード例 #1
0
ファイル: test_utils.py プロジェクト: rafalp/ariadne
def test_introspection_check_returns_false_for_non_introspection_field():
    path = Mock(key="__type")
    info = Mock(path=path)
    assert is_introspection_field(info)
コード例 #2
0
ファイル: test_utils.py プロジェクト: rafalp/ariadne
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)
コード例 #3
0
ファイル: test_utils.py プロジェクト: rafalp/ariadne
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)