add check for directory in config loader
This commit is contained in:
@@ -34,3 +34,10 @@ def test_load_toml_FailWrongPath(tmp_path):
|
||||
|
||||
with pytest.raises(FileNotFoundError):
|
||||
_ = configs.load_toml(wrong_pth)
|
||||
|
||||
|
||||
def test_load_toml_FailIsDirectory(config_file):
|
||||
wrong_pth = config_file.parent
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
_ = configs.load_toml(wrong_pth)
|
||||
|
||||
Reference in New Issue
Block a user