Skip to content

Commit a3b4783

Browse files
committed
Reset mock at start of test
1 parent 3b60e43 commit a3b4783

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/core_tests/test_plugin_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ def test_can_load(mock_manager):
138138

139139

140140
def test_plugin_load(mock_manager, patch_import_module, patch_import_reload):
141+
patch_import_module.reset_mock()
142+
patch_import_reload.reset_mock()
141143
patch_import_module.return_value = mod = MockModule()
142144
mock_manager.bot.loop.run_until_complete(
143145
mock_manager.load_plugin(mock_manager.bot.plugin_dir / "test.py")

0 commit comments

Comments
 (0)