Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad-mtos committed Apr 29, 2024
1 parent 45eae8e commit bb96b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,15 +640,15 @@ def test_notification_triggered():

with patch('app.bot.DAILY_REMINDER_START', now), \
patch('app.bot.Bot'), \
patch('app.bot.asyncio.run', new_callable=MagicMock) as mock_async_run, \
patch('app.bot.asyncio.run', new_callable=MagicMock) as mock_run, \
patch('app.bot.shutdown_event.wait'), \
patch('app.bot.notify_due_tasks', new_callable=MagicMock), \
patch('app.bot.shutdown_event.is_set',
side_effect=[False, False, True]):

run_notifiers()

mock_async_run.assert_called_once()
mock_run.assert_called_once()


def test_main_db_init():
Expand Down

0 comments on commit bb96b11

Please sign in to comment.