We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3aae254 commit e9268ceCopy full SHA for e9268ce
1 file changed
tests/test_config_io.py
@@ -41,3 +41,14 @@ def test_create_io_dir(self):
41
assert Path(input_dir).is_dir()
42
assert Path(output_dir).is_dir()
43
assert Path(config_path).exists()
44
+
45
+ def test_without_soil_layers_thickness(self, dummy_config):
46
+ dummy_config["soil_layers_thickness"] = ""
47
+ with pytest.raises(FileNotFoundError):
48
+ config_io.create_io_dir(dummy_config)
49
50
+ def test_with_soil_layers_thickness(self, dummy_config):
51
+ dummy_config["soil_layers_thickness"] = dummy_config["input_data"]
52
+ input_dir, _, _ = config_io.create_io_dir(dummy_config)
53
54
+ assert (Path(input_dir) / "dummy_data.xlsx").exists()
0 commit comments