def test_attempt_to_bind_union_to_invalid_type_raises_error(schema): union = UnionType("Query") with pytest.raises(ValueError): union.bind_to_schema(schema)
def test_attempt_to_bind_union_to_undefined_type_raises_error(schema): union = UnionType("Test") with pytest.raises(ValueError): union.bind_to_schema(schema)