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

another modification to solve failing

parent 4a8980bb
No related branches found
No related tags found
2 merge requests!17update to v0.4.0,!16handle station type
Pipeline #26610 passed with warnings
......@@ -42,12 +42,12 @@ class TestPreProcessing:
ExperimentSetup(parser_args={}, stations=['DEBW107', 'DEBY081', 'DEBW013', 'DEBW076', 'DEBW087'],
var_all_dict={'o3': 'dma8eu', 'temp': 'maximum'})
caplog.set_level(logging.INFO)
PreProcessing()
time.sleep(0.1) # sometimes the destruction logging is delayed during CI testing, so wait a little
assert caplog.record_tuples[0] == ('root', 20, 'PreProcessing started')
assert caplog.record_tuples[1] == ('root', 20, 'check valid stations started')
assert caplog.record_tuples[-2] == ('root', 20, PyTestRegex(r'run for \d+\.\d+s to check 5 station\(s\). Found '
r'5/5 valid stations.'))
with PreProcessing():
time.sleep(0.1) # sometimes the destruction logging is delayed during CI testing, so wait a little
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 '
r'5/5 valid stations.'))
RunEnvironment().__del__()
def test_run(self, obj_with_exp_setup):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment