Skip to content
Snippets Groups Projects
Commit 9f7b5c67 authored by lukas leufen's avatar lukas leufen
Browse files

try to reduce fixes

parent ef54d18f
No related branches found
No related tags found
2 merge requests!17update to v0.4.0,!16handle station type
Pipeline #26612 passed
......@@ -31,7 +31,6 @@ class TestPreProcessing:
@pytest.fixture
def obj_with_exp_setup(self):
RunEnvironment()
ExperimentSetup(parser_args={}, stations=['DEBW107', 'DEBY081', 'DEBW013', 'DEBW076', 'DEBW087', 'DEBW001'],
var_all_dict={'o3': 'dma8eu', 'temp': 'maximum'}, station_type="background")
pre = object.__new__(PreProcessing)
......@@ -43,8 +42,7 @@ class TestPreProcessing:
ExperimentSetup(parser_args={}, stations=['DEBW107', 'DEBY081', 'DEBW013', 'DEBW076', 'DEBW087'],
var_all_dict={'o3': 'dma8eu', 'temp': 'maximum'})
caplog.set_level(logging.INFO)
with PreProcessing():
time.sleep(0.1) # sometimes the destruction logging is delayed during CI testing, so wait a little
PreProcessing()
assert caplog.record_tuples[0] == ('root', 20, 'PreProcessing started')
assert caplog.record_tuples[1] == ('root', 20, 'check valid stations started')
assert caplog.record_tuples[-1] == ('root', 20, PyTestRegex(r'run for \d+\.\d+s to check 5 station\(s\). Found '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment