Skip to content

Commit

Permalink
fix the load error
Browse files Browse the repository at this point in the history
  • Loading branch information
liuly12 committed Aug 1, 2024
1 parent 962d329 commit f0e1ee7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_land.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from wsimod.nodes.storage import Reservoir
from wsimod.orchestration.model import to_datetime

from pathlib import Path

class MyTestClass(TestCase):
def assertDictAlmostEqual(self, d1, d2, accuracy=19):
Expand Down Expand Up @@ -1206,7 +1207,7 @@ def test_surface_overrides(self):
surface.apply_overrides({'data_input_dict': new_data_input_dict})
self.assertDictEqual(surface.data_input_dict, new_data_input_dict)
# test the format of str
new_data_input_dict = "example_data_input_dict.csv.gz"
new_data_input_dict = str(Path(__file__).parent / "example_data_input_dict.csv.gz")
surface.apply_overrides({'data_input_dict': new_data_input_dict})
from wsimod.orchestration.model import read_csv
new_data_input_dict = read_csv(new_data_input_dict)
Expand Down

0 comments on commit f0e1ee7

Please sign in to comment.