From f0dfd47b8a257bc2da3e66084e3dc946024d60ef Mon Sep 17 00:00:00 2001 From: liuly12 <59883247+liuly12@users.noreply.github.com> Date: Wed, 31 Jul 2024 07:38:12 +0100 Subject: [PATCH] fix the load error Co-authored-by: barneydobson --- tests/test_nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_nodes.py b/tests/test_nodes.py index 2efafbae..e1281050 100644 --- a/tests/test_nodes.py +++ b/tests/test_nodes.py @@ -671,7 +671,7 @@ def test_node_overrides(self): node.apply_overrides({"data_input_dict": new_data_input_dict}) self.assertDictEqual(node.data_input_dict, new_data_input_dict) # check 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") node.apply_overrides({"data_input_dict": new_data_input_dict}) from wsimod.orchestration.model import read_csv