diff --git a/tests/test_plugin_slack.py b/tests/test_plugin_slack.py index 767b5c93..a201d049 100644 --- a/tests/test_plugin_slack.py +++ b/tests/test_plugin_slack.py @@ -181,7 +181,43 @@ apprise_url_tests = ( }, }, ), - # Test blocks mode + ( + ( + "slack://username@xoxb-1234-1234-abc124/#nuxref?footer=yes" + "×tamp=yes"), + { + "instance": NotifySlack, + "requests_response_text": { + "ok": True, + "message": "", + }, + }, + ), + ( + ( + "slack://username@xoxb-1234-1234-abc124/#nuxref?footer=yes" + "×tamp=no"), + { + "instance": NotifySlack, + "requests_response_text": { + "ok": True, + "message": "", + }, + }, + ), + ( + ( + "slack://username@xoxb-1234-1234-abc124/#nuxref?footer=yes" + "×tamp=no"), + { + "instance": NotifySlack, + "requests_response_text": { + "ok": True, + "message": "", + }, + }, + ), + # Test blocks mode with timestamp variation ( ( "slack://?token=T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcOXrIdevi7FQ/" @@ -189,7 +225,7 @@ apprise_url_tests = ( ), {"instance": NotifySlack, "requests_response_text": "ok"}, ), - # Test blocks mode with timestamp + # Test blocks mode with another timestamp ( ( "slack://?token=T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcOXrIdevi7FQ/" @@ -197,10 +233,19 @@ apprise_url_tests = ( ), {"instance": NotifySlack, "requests_response_text": "ok"}, ), + # footer being disabled means timestamp isn't shown ( ( "slack://?token=T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcOXrIdevi7FQ/" - "&to=#chan&blocks=yes&footer=no" + "&to=#chan&blocks=yes&footer=no×tamp=yes" + ), + {"instance": NotifySlack, "requests_response_text": "ok"}, + ), + # footer and timestamp disabled + ( + ( + "slack://?token=T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcOXrIdevi7FQ/" + "&to=#chan&blocks=yes&footer=no×tamp=no" ), {"instance": NotifySlack, "requests_response_text": "ok"}, ),