Skip to content

Commit

Permalink
Update folder structure of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timtroendle committed Jun 27, 2024
1 parent f2a9fd7 commit 3b4d116
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
from pathlib import Path

import numpy as np
import pandas as pd
Expand All @@ -14,7 +15,8 @@
filter_outliers,
)

THIS_DIR = os.path.dirname(__file__)
THIS_DIR = Path(os.path.dirname(__file__))
PATH_TO_RESOURCES = THIS_DIR / ".." / ".." / "resources"


class TestLoadHelperFunctions:
Expand Down Expand Up @@ -197,14 +199,13 @@ def _load(
"fill-29th-feb-from-28th": fill_29th_feb_from_28th,
"data-source-priority-order": list(data_source_priority_order),
}
path_to_raw_load = os.path.join(
THIS_DIR, "..", "resources", "national", "dummy_load.csv"
)
path_to_raw_load = PATH_TO_RESOURCES / "national" / "dummy_load.csv"

countries = ["ALB", "DEU"]
year = 2016

return clean_load_data(
path_to_raw_load, year, year, data_quality_config, countries
path_to_raw_load.as_posix(), year, year, data_quality_config, countries
)

return _load
Expand Down
File renamed without changes.

0 comments on commit 3b4d116

Please sign in to comment.