From c2a8c49ddcc8c1795ea7af4aa52dea99f263a18e Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Tue, 29 Jul 2025 22:17:03 -0400 Subject: [PATCH] thread_key test coverage --- tests/test_plugin_google_chat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_plugin_google_chat.py b/tests/test_plugin_google_chat.py index 7580bb0b..a7d2d9aa 100644 --- a/tests/test_plugin_google_chat.py +++ b/tests/test_plugin_google_chat.py @@ -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"