Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad-mtos committed Apr 29, 2024
1 parent e838b80 commit 45eae8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,14 +635,14 @@ async def test_notify_due_tasks_unexpected_error():
)


@pytest.mark.asyncio
async def test_notification_triggered():
def test_notification_triggered():
now = datetime.now().strftime("%H:%M:%S")

with patch('app.bot.DAILY_REMINDER_START', now), \
patch('app.bot.Bot'), \
patch('app.bot.asyncio.run') as mock_async_run, \
patch('app.bot.asyncio.run', new_callable=MagicMock) as mock_async_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]):

Expand Down

0 comments on commit 45eae8e

Please sign in to comment.