Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
tests(base): move module delete to teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Jul 20, 2019
1 parent 479b183 commit aa74f50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_contrib_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.'):
Expand Down

0 comments on commit aa74f50

Please sign in to comment.