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