From bb96b11427b6a0afbf1fd829192ee5a1e4060e8b Mon Sep 17 00:00:00 2001 From: Ahmad Haidar Date: Mon, 29 Apr 2024 19:55:44 +0300 Subject: [PATCH] fix flake8 --- tests/test_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_bot.py b/tests/test_bot.py index 46383eb..cd6f7de 100644 --- a/tests/test_bot.py +++ b/tests/test_bot.py @@ -640,7 +640,7 @@ 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', @@ -648,7 +648,7 @@ def test_notification_triggered(): run_notifiers() - mock_async_run.assert_called_once() + mock_run.assert_called_once() def test_main_db_init():