From 45518a5ef0b4609354d3271ab64435806a52cffd Mon Sep 17 00:00:00 2001 From: Meyers-Im Date: Mon, 25 Sep 2023 16:15:57 -0700 Subject: [PATCH] fixing imports of test fixtures --- tests/solardatatools/test_data_handler.py | 2 +- tests/solardatatools/test_system_profiler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/solardatatools/test_data_handler.py b/tests/solardatatools/test_data_handler.py index 77311d70..e8258a99 100644 --- a/tests/solardatatools/test_data_handler.py +++ b/tests/solardatatools/test_data_handler.py @@ -10,7 +10,7 @@ class TestDataHandler(unittest.TestCase): def test_load_and_run(self): filepath = Path(__file__).parent.parent data_file_path = filepath / "fixtures" / "data_transforms" / "timeseries.csv" - df = pd.read_csv(data_file_path, index_col=0, parse_dates=True) + df = pd.read_csv(data_file_path, parse_dates=[1], index_col=1) dh = DataHandler(df) dh.run_pipeline(verbose=False) # dh.report() diff --git a/tests/solardatatools/test_system_profiler.py b/tests/solardatatools/test_system_profiler.py index fa3efd7c..39f8a8df 100644 --- a/tests/solardatatools/test_system_profiler.py +++ b/tests/solardatatools/test_system_profiler.py @@ -11,7 +11,7 @@ def test_system_profiler(self): data_file_path = ( filepath / "fixtures" / "system_profiler" / "data_handler_input.csv" ) - data = pd.read_csv(data_file_path, index_col=0, parse_dates=True) + data = pd.read_csv(data_file_path, parse_dates=[1], index_col=1) dh = DataHandler(data, datetime_col="Date-Time") dh.fix_dst() dh.run_pipeline(