mirror of https://github.com/caronc/apprise
more test coverage
parent
58e59370fe
commit
9ba579e813
|
@ -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/"
|
"slack://?token=T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcOXrIdevi7FQ/"
|
||||||
|
@ -189,7 +225,7 @@ apprise_url_tests = (
|
||||||
),
|
),
|
||||||
{"instance": NotifySlack, "requests_response_text": "ok"},
|
{"instance": NotifySlack, "requests_response_text": "ok"},
|
||||||
),
|
),
|
||||||
# Test blocks mode with timestamp
|
# Test blocks mode with another timestamp
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
"slack://?token=T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcOXrIdevi7FQ/"
|
"slack://?token=T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcOXrIdevi7FQ/"
|
||||||
|
@ -197,10 +233,19 @@ apprise_url_tests = (
|
||||||
),
|
),
|
||||||
{"instance": NotifySlack, "requests_response_text": "ok"},
|
{"instance": NotifySlack, "requests_response_text": "ok"},
|
||||||
),
|
),
|
||||||
|
# footer being disabled means timestamp isn't shown
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
"slack://?token=T1JJ3T3L2/A1BRTD4JD/TIiajkdnlazkcOXrIdevi7FQ/"
|
"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"},
|
{"instance": NotifySlack, "requests_response_text": "ok"},
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue