mirror of
https://github.com/zulip/zulip.git
synced 2026-07-03 21:10:12 +08:00
integrations/trello: Use global time.
This commit is contained in:
parent
5c8d9edaae
commit
0b64d722bb
@ -43,11 +43,11 @@ class TrelloHookTests(WebhookTestCase):
|
||||
self.check_webhook("removing_member_from_card", "Welcome Board", expected_message)
|
||||
|
||||
def test_trello_webhook_when_due_date_was_set(self) -> None:
|
||||
expected_message = "TomaszKolek set due date for [Card name](https://trello.com/c/9BduUcVQ) to 2016-05-11 10:00:00 UTC."
|
||||
expected_message = "TomaszKolek set due date for [Card name](https://trello.com/c/9BduUcVQ) to <time:2016-05-11 10:00:00 UTC>."
|
||||
self.check_webhook("setting_due_date_to_card", "Welcome Board", expected_message)
|
||||
|
||||
def test_trello_webhook_when_due_date_was_changed(self) -> None:
|
||||
expected_message = "TomaszKolek changed due date for [Card name](https://trello.com/c/9BduUcVQ) from 2016-05-11 10:00:00 UTC to 2016-05-24 10:00:00 UTC."
|
||||
expected_message = "TomaszKolek changed due date for [Card name](https://trello.com/c/9BduUcVQ) from <time:2016-05-11 10:00:00 UTC> to <time:2016-05-24 10:00:00 UTC>."
|
||||
self.check_webhook("changing_due_date_on_card", "Welcome Board", expected_message)
|
||||
|
||||
def test_trello_webhook_when_due_date_was_removed(self) -> None:
|
||||
|
||||
@ -57,8 +57,8 @@ ACTIONS_TO_MESSAGE_MAPPER = {
|
||||
REMOVE_DESC: "removed description from {card_url_template}.",
|
||||
ARCHIVE: "archived {card_url_template}.",
|
||||
REOPEN: "reopened {card_url_template}.",
|
||||
SET_DUE_DATE: "set due date for {card_url_template} to {due_date}.",
|
||||
CHANGE_DUE_DATE: "changed due date for {card_url_template} from {old_due_date} to {due_date}.",
|
||||
SET_DUE_DATE: "set due date for {card_url_template} to <time:{due_date}>.",
|
||||
CHANGE_DUE_DATE: "changed due date for {card_url_template} from <time:{old_due_date}> to <time:{due_date}>.",
|
||||
REMOVE_DUE_DATE: "removed the due date from {card_url_template}.",
|
||||
ADD_LABEL: 'added a {color} label with "{text}" to {card_url_template}.',
|
||||
REMOVE_LABEL: 'removed a {color} label with "{text}" from {card_url_template}.',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user