Skip to content

Commit

Permalink
Refactored test for new apply_async
Browse files Browse the repository at this point in the history
  • Loading branch information
k-macmillan committed Dec 3, 2024
1 parent 73f35af commit 5d8d26a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/app/celery/test_scheduled_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ def test_replay_created_notifications(
)

replay_created_notifications()
_, kwargs = mocked.call_args.args
assert kwargs['notification_id'] == str(old_notification.id)

assert mocked.call_args.kwargs['queue'] == f'send-{notification_type}-tasks'
mocked.assert_called_once()
args, kwargs = mocked.call_args
assert args[1] == {'notification_id': str(old_notification.id), 'sms_sender_id': None}
assert kwargs['queue'] == f'send-{notification_type}-tasks'


@pytest.mark.serial
Expand Down

0 comments on commit 5d8d26a

Please sign in to comment.