Skip to content

Commit ec369fc

Browse files
committed
fix unit tests
1 parent 105f9af commit ec369fc

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

test/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,10 @@ def mock_inflation_data(tmpdir):
317317
2003: [2.5],
318318
2004: [1.8],
319319
}
320-
index = ["European Union - 27 countries (from 2020)", "United States"]
320+
index = [
321+
"European Economic Area (EEA18-1995, EEA28-2004, EEA30-2007, EEA31-2013, EEA30-2020)",
322+
"United States",
323+
]
321324
inflation_rate_output_path = pathlib.Path(tmpdir, "inflation_rate.xlsx")
322325
inflation_rate_dataframe = pd.DataFrame(data, index=index)
323326
inflation_rate_dataframe.to_excel(

test/test_compile_cost_assumptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
path_cwd = pathlib.Path.cwd()
3232

3333
snakemake_input_dictionary = {
34-
"inflation_rate": "inputs/Eurostat_inflation_rate.xlsx",
34+
"inflation_rate": "inputs/prc_hicp_aind__custom_20097956_spreadsheet.xlsx",
3535
"pypsa_costs": "inputs/costs_PyPSA.csv",
3636
"fraunhofer_costs": "inputs/Fraunhofer_ISE_costs.csv",
3737
"fraunhofer_energy_prices": "inputs/Fraunhofer_ISE_energy_prices.csv",

test/test_helpers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
[
2323
(
2424
"eur",
25-
"European Union - 27 countries (from 2020)",
25+
"European Economic Area (EEA18-1995, EEA28-2004, EEA30-2007, EEA31-2013, EEA30-2020)",
2626
[2017, 2022, 2023],
27-
[0.016, 0.092, 0.064],
27+
[0.017, 0.092, 0.064],
2828
),
2929
("usd", "United States", [2017, 2022, 2023], [0.018, 0.087, 0.03]),
3030
(
3131
"EuR",
32-
"European Union - 27 countries (from 2020)",
32+
"European Economic Area (EEA18-1995, EEA28-2004, EEA30-2007, EEA31-2013, EEA30-2020)",
3333
[2017, 2022, 2023],
34-
[0.016, 0.092, 0.064],
34+
[0.017, 0.092, 0.064],
3535
),
3636
("USD", "United States", [2017, 2022, 2023], [0.018, 0.087, 0.03]),
3737
],
@@ -43,7 +43,7 @@ def test_prepare_inflation_rate(
4343
The test verifies what is returned by prepare_inflation_rate.
4444
"""
4545
inflation_rate_input_file_path = pathlib.Path(
46-
path_cwd, "inputs", "Eurostat_inflation_rates.xlsx"
46+
path_cwd, "inputs", "prc_hicp_aind__custom_20097956_spreadsheet.xlsx"
4747
)
4848
output_series = prepare_inflation_rate(
4949
inflation_rate_input_file_path, currency_to_use

0 commit comments

Comments
 (0)