1
0
Fork 0
forked from s3lph/matemat

Full coverage in config.

This commit is contained in:
s3lph 2018-08-28 21:45:11 +02:00
parent 39dacfcb39
commit 9cd6522b26

View file

@ -241,3 +241,12 @@ class TestConfig(TestCase):
with self.assertRaises(ValueError):
# The filename is only a placeholder, file content is determined by mocking open
parse_config_file('test')
def test_parse_config_not_a_filename(self):
"""
Test type checking for the config filenames
"""
with self.assertRaises(TypeError):
parse_config_file(42)
with self.assertRaises(TypeError):
parse_config_file(['config', 42])