mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
ruff: Fix ISC003 Explicitly concatenated string.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
2c5e114f8b
commit
17300f196c
@@ -16,8 +16,8 @@ from .support_event import SUPPORT_EVENTS
|
||||
DOCUMENT_TEMPLATE = "{user_name} {verb} the document [{title}]({url})"
|
||||
QUESTION_TEMPLATE = "{user_name} {verb} the question [{title}]({url})"
|
||||
QUESTIONS_ANSWER_TEMPLATE = (
|
||||
"{user_name} {verb} the [answer]({answer_url}) "
|
||||
+ "of the question [{question_title}]({question_url})"
|
||||
"{user_name} {verb} the [answer]({answer_url})"
|
||||
" of the question [{question_title}]({question_url})"
|
||||
)
|
||||
COMMENT_TEMPLATE = (
|
||||
"{user_name} {verb} the [comment]({answer_url}) of the task [{task_title}]({task_url})"
|
||||
|
||||
@@ -158,7 +158,7 @@ Billing method: send invoice"""
|
||||
expected_topic = "cus_00000000000000"
|
||||
expected_message = (
|
||||
"[Customer](https://dashboard.stripe.com/customers/cus_00000000000000) updated"
|
||||
+ "\n* Account balance is now 100"
|
||||
"\n* Account balance is now 100"
|
||||
)
|
||||
self.check_webhook(
|
||||
"customer_updated__account_balance",
|
||||
|
||||
@@ -81,8 +81,9 @@ class TaigaHookTests(WebhookTestCase):
|
||||
|
||||
def test_taiga_userstory_changed_due_date(self) -> None:
|
||||
message = (
|
||||
"[Aditya Verma](https://tree.taiga.io/profile/orientor) changed due date of user story "
|
||||
+ "[Nice Issue](https://tree.taiga.io/project/orientor-sd/us/54) from 2020-02-15 to 2020-02-22."
|
||||
"[Aditya Verma](https://tree.taiga.io/profile/orientor) changed due date of user story"
|
||||
" [Nice Issue](https://tree.taiga.io/project/orientor-sd/us/54) from 2020-02-15 to"
|
||||
" 2020-02-22."
|
||||
)
|
||||
self.check_webhook("userstory_changed_due_date", self.TOPIC, message)
|
||||
|
||||
@@ -145,7 +146,8 @@ class TaigaHookTests(WebhookTestCase):
|
||||
def test_taiga_task_changed_due_date(self) -> None:
|
||||
message = (
|
||||
"[Aditya Verma](https://tree.taiga.io/profile/orientor) changed due date of task"
|
||||
+ " [nice task](https://tree.taiga.io/project/orientor-sd/task/56) from 2020-02-22 to 2020-02-15."
|
||||
" [nice task](https://tree.taiga.io/project/orientor-sd/task/56) from 2020-02-22 to"
|
||||
" 2020-02-15."
|
||||
)
|
||||
self.check_webhook("task_changed_due_date", self.TOPIC, message)
|
||||
|
||||
@@ -235,8 +237,9 @@ class TaigaHookTests(WebhookTestCase):
|
||||
|
||||
def test_taiga_issue_changed_due_date(self) -> None:
|
||||
message = (
|
||||
"[Aditya Verma](https://tree.taiga.io/profile/orientor) changed due date of issue [Issues](https://tree.taiga.io/project/orientor-sd/issue/49) "
|
||||
+ "from 2020-03-08 to 2020-02-22."
|
||||
"[Aditya Verma](https://tree.taiga.io/profile/orientor) changed due date of issue"
|
||||
" [Issues](https://tree.taiga.io/project/orientor-sd/issue/49) from 2020-03-08 to"
|
||||
" 2020-02-22."
|
||||
)
|
||||
self.check_webhook("issue_changed_due_date", self.TOPIC, message)
|
||||
|
||||
@@ -302,8 +305,9 @@ class TaigaHookTests(WebhookTestCase):
|
||||
|
||||
def test_taiga_relateduserstory_created_link(self) -> None:
|
||||
message = (
|
||||
"[Aditya Verma](https://tree.taiga.io/profile/orientor) added a related user story [Nice Issue](https://tree.taiga.io/project/orientor-sd/us/54) "
|
||||
+ "to the epic [ASAS](https://tree.taiga.io/project/orientor-sd/epic/42)."
|
||||
"[Aditya Verma](https://tree.taiga.io/profile/orientor) added a related user story"
|
||||
" [Nice Issue](https://tree.taiga.io/project/orientor-sd/us/54) to the epic"
|
||||
" [ASAS](https://tree.taiga.io/project/orientor-sd/epic/42)."
|
||||
)
|
||||
self.check_webhook("relateduserstory_created_link", self.TOPIC, message)
|
||||
|
||||
|
||||
@@ -59,12 +59,12 @@ templates = {
|
||||
},
|
||||
"relateduserstory": {
|
||||
"create": (
|
||||
"[{user}]({user_link}) added a related user story "
|
||||
"{userstory_subject} to the epic {epic_subject}."
|
||||
"[{user}]({user_link}) added a related user story"
|
||||
" {userstory_subject} to the epic {epic_subject}."
|
||||
),
|
||||
"delete": (
|
||||
"[{user}]({user_link}) removed a related user story "
|
||||
+ "{userstory_subject} from the epic {epic_subject}."
|
||||
"[{user}]({user_link}) removed a related user story"
|
||||
" {userstory_subject} from the epic {epic_subject}."
|
||||
),
|
||||
},
|
||||
"userstory": {
|
||||
|
||||
@@ -52,7 +52,7 @@ ACTIONS_TO_MESSAGE_MAPPER = {
|
||||
SET_DESC: "set description for {card_url_template} to:\n~~~ quote\n{desc}\n~~~\n",
|
||||
CHANGE_DESC: (
|
||||
"changed description for {card_url_template} from\n"
|
||||
+ "~~~ quote\n{old_desc}\n~~~\nto\n~~~ quote\n{desc}\n~~~\n"
|
||||
"~~~ quote\n{old_desc}\n~~~\nto\n~~~ quote\n{desc}\n~~~\n"
|
||||
),
|
||||
REMOVE_DESC: "removed description from {card_url_template}.",
|
||||
ARCHIVE: "archived {card_url_template}.",
|
||||
|
||||
Reference in New Issue
Block a user