diff --git a/tests/scenario_test/test_get_hooks.py b/tests/scenario_test/test_get_hooks.py index 608fbc5..305d63a 100644 --- a/tests/scenario_test/test_get_hooks.py +++ b/tests/scenario_test/test_get_hooks.py @@ -12,9 +12,6 @@ def setup_method(self): cli_args = [get_hooks.__name__, "--protocol", "message-boundaries", "--boundary", ""] self.argv_mock = patch.object(sys, "argv", cli_args) self.argv_mock.start() - # Prevent unpredictable behavior from import order mismatch - if get_hooks.__name__ in sys.modules: - del sys.modules[get_hooks.__name__] def teardown_method(self): self.argv_mock.stop() diff --git a/tests/scenario_test/test_get_manifest.py b/tests/scenario_test/test_get_manifest.py index 21d10fa..32c5bd7 100644 --- a/tests/scenario_test/test_get_manifest.py +++ b/tests/scenario_test/test_get_manifest.py @@ -17,9 +17,6 @@ def setup_method(self): self.argv_mock = patch.object(sys, "argv", cli_args) self.argv_mock.start() self.cwd = os.getcwd() - # Prevent unpredictable behavior from import order mismatch - if get_manifest.__name__ in sys.modules: - del sys.modules[get_manifest.__name__] def teardown_method(self): os.chdir(self.cwd) diff --git a/tests/scenario_test/test_start.py b/tests/scenario_test/test_start.py index 75f43e4..d4cb405 100644 --- a/tests/scenario_test/test_start.py +++ b/tests/scenario_test/test_start.py @@ -27,9 +27,6 @@ def setup_method(self): self.argv_mock.start() self.cwd = os.getcwd() - # Prevent unpredictable behavior from import order mismatch - if start.__name__ in sys.modules: - del sys.modules[start.__name__] def teardown_method(self): self.argv_mock.stop()