Skip to content
Snippets Groups Projects
Commit 0634907a authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Test disabling assertions

parent b5ab4482
No related branches found
No related tags found
No related merge requests found
...@@ -171,3 +171,10 @@ def test_assertIsMelodicDir(): ...@@ -171,3 +171,10 @@ def test_assertIsMelodicDir():
else: else:
with pytest.raises(AssertionError): with pytest.raises(AssertionError):
assertions.assertIsMelodicDir(dirname) assertions.assertIsMelodicDir(dirname)
def test_disabled():
with assertions.disabled():
assertions.assertFileExists('NOT', 'A', 'FILE', 'NO', 'WAY')
assertions.assertIsNifti('boo.txt')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment