From e5b29944ca961d65413b5110896e871528d67020 Mon Sep 17 00:00:00 2001 From: liuly12 Date: Wed, 2 Oct 2024 17:22:41 +0100 Subject: [PATCH] Use os --- tests/test_nodes.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tests/test_nodes.py b/tests/test_nodes.py index f3f8b20e..d78da17a 100644 --- a/tests/test_nodes.py +++ b/tests/test_nodes.py @@ -14,7 +14,7 @@ from wsimod.nodes.nodes import Node from wsimod.nodes.storage import Storage from wsimod.nodes.waste import Waste -from pathlib import Path +import os import pandas as pd @@ -420,14 +420,8 @@ def test_data_read(self): self.assertEqual(15, node.get_data_input("temperature")) def test_data_overrides(self): - data_path = ( - Path.cwd() - / "docs" - / "demo" - / "data" - / "processed" - / "example_override_data.csv.gz" - ) + data_path = os.path.join(os.getcwd(), "docs", "demo", "data", + "processed", "example_override_data.csv.gz") input_data = pd.read_csv(data_path) overrides = {"data_input_dict": data_path}