chhangement du comportement du discord bot sur modif des matchs
CI - Security, Lint & Tests / validate (push) Failing after 59s
CI - Security, Lint & Tests / validate (push) Failing after 59s
This commit is contained in:
@@ -69,6 +69,21 @@ class TestNotifying:
|
||||
assert [call['reference_id'] for call in sent] == [11, 22]
|
||||
assert {call['event_date'] for call in sent} == {'2030-04-01'}
|
||||
assert {call['event_time'] for call in sent} == {'07:00 PM - 09:00 PM'}
|
||||
assert {call['change_kind'] for call in sent} == {'scheduled'}
|
||||
|
||||
def test_modified_kind_is_forwarded(self, sent):
|
||||
"""A modified notification carries 'modified' to the bot."""
|
||||
scheduling.notify_participants(
|
||||
title='Scrim',
|
||||
date=date(2030, 4, 1),
|
||||
start_time=time(19, 0),
|
||||
end_time=time(21, 0),
|
||||
participants=[(1, 11)],
|
||||
fallback_id=99,
|
||||
change_kind='modified',
|
||||
)
|
||||
|
||||
assert sent[0]['change_kind'] == 'modified'
|
||||
|
||||
def test_a_participant_without_a_row_falls_back_to_the_match(self, sent):
|
||||
"""A Discord reaction resolves the reference back to a record; the
|
||||
|
||||
Reference in New Issue
Block a user