Skip to content

Commit

Permalink
Merge pull request #36 from sturmianseq/Improve_test_operator
Browse files Browse the repository at this point in the history
Improve test reliability by cleaning the state before running test_remove_missing_module
  • Loading branch information
DrTexx authored Aug 18, 2021
2 parents c41339a + 853740e commit 642c56d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ def test_remove_module(self):
assert not (cli_UUID in vlx.modules)

def test_remove_missing_module(self):
global cli_UUID
if cli_UUID in vlx.modules:
vlx.remove_module(cli_module)
with pytest.raises(AttributeError):
vlx.remove_module(cli_module)
vlx.add_module(cli_module)
cli_UUID = vlx.add_module(cli_module)

def test_validate_module(self):
assert vlx.validate_module(vlx) is False
Expand Down

0 comments on commit 642c56d

Please sign in to comment.