This commit is contained in:
Team3
2026-07-26 20:53:01 +02:00
parent ebfb2fc360
commit 0115fd4ce9
13 changed files with 264 additions and 321 deletions

View File

@@ -70,6 +70,12 @@ def test_loeschen(projekt):
assert features.liste(projekt) == []
def test_speichern_ohne_titel(projekt):
f = features.anlegen(projekt, "<!-- titel -->\nDa\n")
with pytest.raises(ValueError):
features.speichern(projekt, f["id"], "<!-- ziel -->\nohne Titel\n")
def test_unbekannte_id(projekt):
with pytest.raises(FileNotFoundError):
features.speichern(projekt, "gibts-nicht", "x")