forked from s3lph/matemat
Full coverage in config.
This commit is contained in:
parent
39dacfcb39
commit
9cd6522b26
1 changed files with 9 additions and 0 deletions
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue