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

    tc.attribute.delete(s, attr)
Example #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)