test: add missing update_template KeyError test (#74)
This commit is contained in:
parent
ea961d6da9
commit
091834f1ae
1 changed files with 6 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue