def test_update(): s = fake.session() attr = fake.attribute() updated_attr = tc.attribute.update( s, attr, description="Synthetic row number updated") assert updated_attr.description == "Synthetic row number updated"
def test_delete(): s = fake.session() attr = fake.attribute() tc.attribute.delete(s, attr)
def test_delete_attribute_not_found(): s = fake.session() attr = fake.attribute() with pytest.raises(tc.attribute.NotFound): tc.attribute.delete(s, attr)