mirror of https://github.com/caronc/apprise
thread_key test coverage
parent
d58d3faa70
commit
c2a8c49ddc
|
@ -191,6 +191,7 @@ def test_plugin_google_chat_general(mock_post):
|
|||
params = mock_post.call_args_list[0][1]["params"]
|
||||
assert params.get("token") == token
|
||||
assert params.get("key") == key
|
||||
assert "messageReplyOption" not in params
|
||||
payload = loads(mock_post.call_args_list[0][1]["data"])
|
||||
assert "thread" not in payload
|
||||
assert payload["text"] == "title\r\ntest body"
|
||||
|
@ -216,6 +217,8 @@ def test_plugin_google_chat_general(mock_post):
|
|||
params = mock_post.call_args_list[0][1]["params"]
|
||||
assert params.get("token") == token
|
||||
assert params.get("key") == key
|
||||
assert params.get("messageReplyOption") == \
|
||||
"REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD"
|
||||
payload = loads(mock_post.call_args_list[0][1]["data"])
|
||||
assert "thread" in payload
|
||||
assert payload["text"] == "title\r\ntest body"
|
||||
|
|
Loading…
Reference in New Issue