Update test to verify webhook won't log-spam on new messagetypes

This commit is contained in:
Matthias 2022-10-01 09:45:58 +02:00
parent 8e101a9f1c
commit 6841bdaa81
1 changed files with 8 additions and 0 deletions

View File

@ -365,6 +365,14 @@ def test_exception_send_msg(default_conf, mocker, caplog):
with pytest.raises(NotImplementedError):
webhook.send_msg(msg)
# Test no failure for not implemented but known messagetypes
for e in RPCMessageType:
msg = {
'type': e,
'status': 'whatever'
}
webhook.send_msg(msg)
def test__send_msg(default_conf, mocker, caplog):
default_conf["webhook"] = get_webhook_dict()