def test_symbol_projection_failures(): t = TableSymbol('t', '10 * {name: string, amount: int}') with pytest.raises(ValueError): t._project(['name', 'id']) with pytest.raises(AttributeError): t.foo with pytest.raises(TypeError): t._project(t.dshape)
def test_symbol_projection_failures(): t = TableSymbol("t", "10 * {name: string, amount: int}") with pytest.raises(ValueError): t._project(["name", "id"]) with pytest.raises(AttributeError): t.foo with pytest.raises(TypeError): t._project(t.dshape)