test: add missing update_template KeyError test (#74)

This commit is contained in:
pyr0ball 2026-04-20 12:32:35 -07:00
parent ea961d6da9
commit 091834f1ae

View file

@ -369,6 +369,12 @@ class TestUpdateTemplate:
with pytest.raises(PermissionError):
update_template(db_path, builtin["id"], title="Hacked")
def test_update_missing_raises_key_error(self, db_path):
from scripts.messaging import update_template
with pytest.raises(KeyError):
update_template(db_path, 9999, title="Ghost")
class TestDeleteTemplate:
def test_delete_user_template(self, db_path: Path) -> None: