Commit 70ed13c6 authored by lukas leufen's avatar lukas leufen 👻
Browse files

fix tests

parent 50e6d0bf
Pipeline #105009 passed with stages
in 16 minutes and 54 seconds
......@@ -14,6 +14,7 @@ from timezonefinder import TimezoneFinder
from mlair.configuration.toar_data_v2_settings import toar_data_v2_settings
from mlair.helpers import to_list
from mlair.helpers.data_sources.toar_data import EmptyQueryResult, get_data
from mlair.helpers.data_sources import join
str_or_none = Union[str, None]
......@@ -173,7 +174,7 @@ def load_timeseries_data(timeseries_meta, url_base, opts, headers, sampling):
res = get_data(opts, headers, as_json=False)
data = pd.read_csv(StringIO(res), comment="#", index_col="datetime", parse_dates=True,
infer_datetime_format=True)
data = data[opts.get("names", "value")].rename(meta["variable"]["name"])
data = data[join._correct_stat_name(opts.get("names", "value"))].rename(meta["variable"]["name"])
coll.append(data)
return coll
......
......@@ -31,7 +31,6 @@ class TestAllDefaults:
'v': 'average_values', 'no': 'dma8eu', 'no2': 'dma8eu',
'cloudcover': 'average_values',
'pblheight': 'maximum'}
assert DEFAULT_NETWORK == "AIRBASE"
assert DEFAULT_STATION_TYPE == "background"
assert DEFAULT_VARIABLES == DEFAULT_VAR_ALL_DICT.keys()
assert DEFAULT_START == "1997-01-01"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment