Skip to content

Commit

Permalink
fix of libs path and move of the tests to models
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann-Temudjin committed Apr 3, 2024
1 parent f6218bd commit fccf367
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_electrolyzer_n_inputs_1(data_dir: Path):
total gaz production = flow_ep1 * alpha_ez1 + flow_ep2 * alpha_ez2 + flow_gp
"""
libs_path = Path(os.path.join(os.getcwd(), "../../src/andromede/libs/"))
libs_path = Path(__file__).parents[3] / "src/andromede/libs/"
lib_file = data_dir / "lib.yml"
lib_sc_file = libs_path / "standard_sc.yml"

Expand Down Expand Up @@ -180,7 +180,7 @@ def test_electrolyzer_n_inputs_2(data_dir: Path):
total gaz production = flow_ep1 * alpha1_ez + flow_ep2 * alpha2_ez + flow_gp
"""

libs_path = Path("../../src/andromede/libs/")
libs_path = Path(__file__).parents[3] / "src/andromede/libs/"
lib_file = data_dir / "lib.yml"
lib_sc_file = libs_path / "standard_sc.yml"

Expand Down Expand Up @@ -291,7 +291,7 @@ def test_electrolyzer_n_inputs_3(data_dir: Path):
The result is different since we only have one alpha at 0.7
"""
libs_path = Path("../../src/andromede/libs/")
libs_path = Path(__file__).parents[3] / "src/andromede/libs/"
lib_file = data_dir / "lib.yml"
lib_sc_file = libs_path / "standard_sc.yml"

Expand Down Expand Up @@ -407,7 +407,7 @@ def test_electrolyzer_n_inputs_4(data_dir: Path):
same as test 3, the result is different than the first two since we only have one alpha at 0.7
"""
libs_path = Path("../../src/andromede/libs/")
libs_path = Path(__file__).parents[3] / "src/andromede/libs/"
lib_file = data_dir / "lib.yml"
lib_sc_file = libs_path / "standard_sc.yml"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@


def test_quota_co2(data_dir: Path):
libs_path = Path("../../src/andromede/libs/")
libs_path = Path(__file__).parents[3] / "src/andromede/libs/"
lib_file = data_dir / "lib.yml"
lib_sc_file = libs_path / "standard_sc.yml"

Expand Down

0 comments on commit fccf367

Please sign in to comment.