From aa74f50c6e9a1a4b74150d1fda1354337671e34e Mon Sep 17 00:00:00 2001 From: hanhxiao Date: Sat, 20 Jul 2019 16:09:30 +0800 Subject: [PATCH] tests(base): move module delete to teardown --- tests/test_contrib_module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_contrib_module.py b/tests/test_contrib_module.py index fc7b7fcb..a71171aa 100644 --- a/tests/test_contrib_module.py +++ b/tests/test_contrib_module.py @@ -12,6 +12,7 @@ def setUp(self): self.yaml_path = os.path.join(os.path.dirname(__file__), 'contrib', 'dummy.yml') + def tearDown(self): # reload gnes module on every unit test for mod in list(sys.modules.keys()): if mod.startswith('gnes.'):