@@ -1431,6 +1431,14 @@ def test_apply_surface_overrides(tmp_path):
14311431 import yaml
14321432 from wsimod .orchestration .model import Model
14331433
1434+ with (tmp_path / "fake_surface_inputs.csv" ).open ("w" ) as f :
1435+ f .write ("node,surface,variable,time,value\n " )
1436+ f .write ("land1,Woodland,srp-dry,2000-01-01,1\n " )
1437+
1438+ with (tmp_path / "fake_inputs.csv" ).open ("w" ) as f :
1439+ f .write ("node,variable,time,value\n " )
1440+ f .write ("land1,et0,2000-01-01,1\n " )
1441+
14341442 config = {
14351443 "arcs" : {
14361444 "arc1" : {
@@ -1447,20 +1455,23 @@ def test_apply_surface_overrides(tmp_path):
14471455 "name" : "land1" ,
14481456 "type_" : "Land" ,
14491457 "percolation_residence_time" : 0.1 ,
1458+ "filename" : str (tmp_path / "fake_inputs.csv" ),
14501459 "surfaces" : {
14511460 "Woodland" : {
14521461 "area" : 100 ,
14531462 "datum" : 10 ,
14541463 "type_" : "GrowingSurface" ,
14551464 "ET_depletion_factor" : 0.75 ,
14561465 "surface" : "Woodland" ,
1466+ "filename" : str (tmp_path / "fake_surface_inputs.csv" ),
14571467 },
14581468 "Grass" : {
14591469 "area" : 200 ,
14601470 "datum" : 20 ,
14611471 "type_" : "GrowingSurface" ,
14621472 "ET_depletion_factor" : 0.75 ,
14631473 "surface" : "Grass" ,
1474+ "filename" : str (tmp_path / "fake_surface_inputs.csv" ),
14641475 },
14651476 },
14661477 },
@@ -1482,7 +1493,6 @@ def test_apply_surface_overrides(tmp_path):
14821493 "surfaces" : {
14831494 "Woodland" : {
14841495 "surface" : "Woodland" ,
1485- "type_" : "GrowingSurface" ,
14861496 "area" : 1000 ,
14871497 "ET_depletion_factor" : 0.8 ,
14881498 }
0 commit comments