Skip to content

Commit

Permalink
Add test for error too many settings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusfuchs committed Dec 1, 2020
1 parent 575bf85 commit c75ab45
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions buildingspy/tests/test_development_regressiontest.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,16 @@ def test_expand_packages(self):
self.assertRaises(ValueError,
r.Tester.expand_packages, "AB}a{")

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


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

0 comments on commit c75ab45

Please sign in to comment.