Skip to content

Commit

Permalink
Use os
Browse files Browse the repository at this point in the history
  • Loading branch information
liuly12 committed Oct 2, 2024
1 parent df47c9e commit e5b2994
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tests/test_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit e5b2994

Please sign in to comment.