Esempio n. 1
0
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"
Esempio n. 2
0
def test_delete():
    s = fake.session()
    attr = fake.attribute()

    tc.attribute.delete(s, attr)
Esempio n. 3
0
def test_delete_attribute_not_found():
    s = fake.session()
    attr = fake.attribute()

    with pytest.raises(tc.attribute.NotFound):
        tc.attribute.delete(s, attr)