@@ -1431,6 +1431,14 @@ def test_apply_surface_overrides(tmp_path):
1431
1431
import yaml
1432
1432
from wsimod .orchestration .model import Model
1433
1433
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
+
1434
1442
config = {
1435
1443
"arcs" : {
1436
1444
"arc1" : {
@@ -1447,20 +1455,23 @@ def test_apply_surface_overrides(tmp_path):
1447
1455
"name" : "land1" ,
1448
1456
"type_" : "Land" ,
1449
1457
"percolation_residence_time" : 0.1 ,
1458
+ "filename" : str (tmp_path / "fake_inputs.csv" ),
1450
1459
"surfaces" : {
1451
1460
"Woodland" : {
1452
1461
"area" : 100 ,
1453
1462
"datum" : 10 ,
1454
1463
"type_" : "GrowingSurface" ,
1455
1464
"ET_depletion_factor" : 0.75 ,
1456
1465
"surface" : "Woodland" ,
1466
+ "filename" : str (tmp_path / "fake_surface_inputs.csv" ),
1457
1467
},
1458
1468
"Grass" : {
1459
1469
"area" : 200 ,
1460
1470
"datum" : 20 ,
1461
1471
"type_" : "GrowingSurface" ,
1462
1472
"ET_depletion_factor" : 0.75 ,
1463
1473
"surface" : "Grass" ,
1474
+ "filename" : str (tmp_path / "fake_surface_inputs.csv" ),
1464
1475
},
1465
1476
},
1466
1477
},
@@ -1482,7 +1493,6 @@ def test_apply_surface_overrides(tmp_path):
1482
1493
"surfaces" : {
1483
1494
"Woodland" : {
1484
1495
"surface" : "Woodland" ,
1485
- "type_" : "GrowingSurface" ,
1486
1496
"area" : 1000 ,
1487
1497
"ET_depletion_factor" : 0.8 ,
1488
1498
}
0 commit comments