From a3b47833a03be5308226602f86d2a96553ca9a47 Mon Sep 17 00:00:00 2001 From: linuxdaemon Date: Thu, 14 Mar 2024 22:14:13 +0000 Subject: [PATCH] Reset mock at start of test --- tests/core_tests/test_plugin_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/core_tests/test_plugin_manager.py b/tests/core_tests/test_plugin_manager.py index 05098cb9b..44a7ccf60 100644 --- a/tests/core_tests/test_plugin_manager.py +++ b/tests/core_tests/test_plugin_manager.py @@ -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")