Skip to content

Commit

Permalink
fix main test
Browse files Browse the repository at this point in the history
  • Loading branch information
thecarrot123 committed Apr 29, 2024
1 parent 44402f6 commit f402098
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def test_main_db_init():
"""
with patch('app.bot.init_db') as mock_init_db, patch(
'app.bot.Application.builder'
), patch('app.bot.run_notifiers'):
), patch('app.bot.run_notifiers'), \
patch('app.bot.Thread'):

main()

Expand All @@ -38,7 +39,7 @@ def test_main_command_handler():
'app.bot.CommandHandler'
) as mock_command_handler, patch(
'app.bot.run_notifiers'
):
), patch('app.bot.Thread'):

mock_application = MagicMock()
mock_builder.return_value.token.return_value.build.return_value = (
Expand Down

0 comments on commit f402098

Please sign in to comment.