mirror of
https://github.com/zulip/zulip.git
synced 2025-11-22 23:43:38 +00:00
trello: Ignore updateCheckItem/updateList actions.
This commit is contained in:
@@ -112,13 +112,18 @@ class TrelloHookTests(WebhookTestCase):
|
||||
payload = self.get_body('change_board_background_image')
|
||||
self.verify_post_is_ignored(payload)
|
||||
|
||||
def test_create_card_check_item_ignore(self) -> None:
|
||||
def test_ignored_card_actions(self) -> None:
|
||||
"""
|
||||
Certain card-related actions are now ignored solely based on the
|
||||
action type, and we don't need to do any other parsing to ignore
|
||||
them as invalid.
|
||||
"""
|
||||
action = "createCheckItem"
|
||||
actions = [
|
||||
"createCheckItem",
|
||||
"updateCheckItem",
|
||||
"updateList",
|
||||
]
|
||||
for action in actions:
|
||||
data = dict(
|
||||
model="whatever",
|
||||
action=dict(
|
||||
|
||||
@@ -16,7 +16,9 @@ SUPPORTED_CARD_ACTIONS = [
|
||||
]
|
||||
|
||||
IGNORED_CARD_ACTIONS = [
|
||||
'createCheckItem',
|
||||
"createCheckItem",
|
||||
"updateCheckItem",
|
||||
"updateList",
|
||||
]
|
||||
|
||||
CREATE = 'createCard'
|
||||
|
||||
Reference in New Issue
Block a user