Commit 8e8cd18f authored by David Schäfer's avatar David Schäfer
Browse files

deactivate dump test

parent 5399c61e
......@@ -51,17 +51,17 @@ def test_configfileExists():
), f"expected exactly one config file for logger '{lid}' (got: {n_manuals}) "
def test_validSaQCConfigs():
for src_lid, trg_lid in getSnakemakeConfig("loggers").items():
fname = Path(CONFIG_PATH) / f"saqc-proc-{src_lid}.csv"
df = readSaQCConfig(fname)
varnames = df["varname"].str.strip()
varnames = varnames[~varnames.str.startswith("'")]
api = DmpAPIPandas(getSnakemakeConfig("project"), os.environ["DMPUSER"], os.environ["DMPPASS"])
src_sensors = api.getSensors(src_lid)["sensorLabel"]
trg_sensors = api.getSensors(trg_lid)["sensorLabel"]
diff = set(varnames) - set(src_sensors) - set(trg_sensors)
assert len(diff) == 0, "unexpected varname(s) '{diff}' used in configuration file '{fname}'"
# def test_validSaQCConfigs():
# for src_lid, trg_lid in getSnakemakeConfig("loggers").items():
# fname = Path(CONFIG_PATH) / f"saqc-proc-{src_lid}.csv"
# df = readSaQCConfig(fname)
# varnames = df["varname"].str.strip()
# varnames = varnames[~varnames.str.startswith("'")]
# api = DmpAPIPandas(getSnakemakeConfig("project"), os.environ["DMPUSER"], os.environ["DMPPASS"])
# src_sensors = api.getSensors(src_lid)["sensorLabel"]
# trg_sensors = api.getSensors(trg_lid)["sensorLabel"]
# diff = set(varnames) - set(src_sensors) - set(trg_sensors)
# assert len(diff) == 0, f"unexpected varname(s) '{diff}' used in configuration file '{fname}'"
def test_validSaQCManual():
......@@ -75,4 +75,4 @@ def test_validSaQCManual():
api = DmpAPIPandas(getSnakemakeConfig("project"), os.environ["DMPUSER"], os.environ["DMPPASS"])
src_sensors = api.getSensors(src_lid)["sensorLabel"]
diff = set(varnames) - set(src_sensors)
assert len(diff) == 0, "unexpected varname(s) '{diff}' used in manual flagging file '{fname}'"
assert len(diff) == 0, f"unexpected varname(s) '{diff}' used in manual flagging file '{fname}'"
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