Skip to content

Commit

Permalink
Remove raw header tests from metobs integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
docNord committed Mar 11, 2024
1 parent 69d5f88 commit f92fef9
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions tests/integration/test_integration_metobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_integration_metobs_first(
@pytest.mark.parametrize(
"parameter, station, period, init_key, init_title, parameter_data_0, "
+ "station_data_0, period_data_0, data_title, table_locr, table_locc, "
+ "table, raw_header_0, header_0",
+ "table, header_0",
[
(
1,
Expand All @@ -130,7 +130,6 @@ def test_integration_metobs_first(
None,
None,
False,
None,
{},
),
(
Expand All @@ -148,13 +147,6 @@ def test_integration_metobs_first(
0,
0,
-15.2,
"\ufeffStationsnamn;Stationsnummer;Stationsnät;Mäthöjd (meter "
+ "över marken)\nKaresuando A;192840;SMHIs stationsnät;2.0\n\n"
+ "Parameternamn;Beskrivning;Enhet\nLufttemperatur;momentanvärde, "
+ "1 gång/tim;celsius\n\nTidsperiod (fr.o.m);Tidsperiod "
+ "(t.o.m);Höjd (meter över havet);Latitud (decimalgrader);Longitud "
+ "(decimalgrader)\n2008-11-01 00:00:00;{{ date }};329.68;"
+ "68.4418;22.4435\n\n",
METOBS_INTEGRATION[1],
),
(
Expand All @@ -172,13 +164,6 @@ def test_integration_metobs_first(
0,
2,
-16.1,
"\ufeffStationsnamn;Stationsnummer;Stationsnät;Mäthöjd (meter "
+ "över marken)\nKaresuando A;192840;SMHIs stationsnät;2.0\n\n"
+ "Parameternamn;Beskrivning;Enhet\nLufttemperatur;medelvärde 1 "
+ "dygn, 1 gång/dygn, kl 00;celsius\n\nTidsperiod (fr.o.m);Tidsperiod "
+ "(t.o.m);Höjd (meter över havet);Latitud (decimalgrader);Longitud "
+ "(decimalgrader)\n2008-11-01 00:00:00;2024-01-01 08:20:12;329.68;"
+ "68.4418;22.4435\n\nFrån ",
METOBS_INTEGRATION[2],
),
(
Expand All @@ -196,12 +181,6 @@ def test_integration_metobs_first(
0,
2,
-8.7,
"\ufeffStationsnamn;Stationsnummer;Stationsnät;Mäthöjd "
+ "(meter över marken)\nKaresuando A;192840;SMHIs stationsnät;2.0\n\n"
+ "Parameternamn;Beskrivning;Enhet\nLufttemperatur;medel, 1 gång per "
+ "månad;celsius\n\nTidsperiod (fr.o.m);Tidsperiod (t.o.m);Höjd (meter "
+ "över havet);Latitud (decimalgrader);Longitud (decimalgrader)\n"
+ "2008-12-01 00:00:00;2024-01-01 18:21:06;329.68;68.4418;22.4435\n\nFrån ",
METOBS_INTEGRATION[22],
),
],
Expand All @@ -220,7 +199,6 @@ def test_integration_metobs_second(
table_locr,
table_locc,
table,
raw_header_0,
header_0,
):
"""Integration test of the Metobs API through the object clients.
Expand All @@ -238,7 +216,6 @@ def test_integration_metobs_second(
table_locr,
table_locc
table
raw_header_0
header_0
"""
parameters = Parameters()
Expand All @@ -256,7 +233,6 @@ def test_integration_metobs_second(
assert data.title == data_title
if table:
assert data.data.iloc[table_locr, table_locc] == table
assert data.raw_data_header[0:324] == raw_header_0[0:324]
data.data_header.pop("Tidsperiod (t.o.m)")
if header_0.get("Tidsperiod (t.o.m)"):
header_0.pop("Tidsperiod (t.o.m)")
Expand Down

0 comments on commit f92fef9

Please sign in to comment.