Skip to content

Commit

Permalink
Add test for non-existing directory
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusfuchs committed Dec 1, 2020
1 parent c75ab45 commit 907ba79
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion buildingspy/tests/test_development_regressiontest.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def test_expand_packages(self):
self.assertRaises(ValueError,
r.Tester.expand_packages, "AB}a{")

def test_invalid_custom_reference_results(self):
def test_conflicting_custom_reference_results_settings(self):
import buildingspy.development.regressiontest as r
# Verify that setting both options raises a ValueError.
args = []
Expand All @@ -266,6 +266,15 @@ def test_invalid_custom_reference_results(self):
}
self.assertRaises(ValueError, r.Tester, *args, **kwargs)

def test_invalid_custom_reference_directory(self):
import buildingspy.development.regressiontest as r
# Verify that setting both options raises a ValueError.
args = []
kwargs = {
"base_reference_result_directory": "test/test"
}
self.assertRaises(OSError, r.Tester, *args, **kwargs)


if __name__ == '__main__':
unittest.main()

0 comments on commit 907ba79

Please sign in to comment.