Skip to content

Commit

Permalink
Reset mock at start of test
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed Mar 14, 2024
1 parent 3b60e43 commit a3b4783
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/core_tests/test_plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ def test_can_load(mock_manager):


def test_plugin_load(mock_manager, patch_import_module, patch_import_reload):
patch_import_module.reset_mock()
patch_import_reload.reset_mock()
patch_import_module.return_value = mod = MockModule()
mock_manager.bot.loop.run_until_complete(
mock_manager.load_plugin(mock_manager.bot.plugin_dir / "test.py")
Expand Down

0 comments on commit a3b4783

Please sign in to comment.