def test_derived_raises(db): session = Session(db, from_id='testid') with pytest.raises(ValueError): session.derived = 5
def test_derived(db): session = Session(db, from_id='testid') assert session.derived is False session.derived = True assert session.derived is True