From fe6d17969976d2c3e7c8e4f2a27fccd14268ec69 Mon Sep 17 00:00:00 2001
From: leufen1 <l.leufen@fz-juelich.de>
Date: Wed, 14 Sep 2022 23:28:29 +0200
Subject: [PATCH] update indices in caplog tests

---
 test/test_run_modules/test_pre_processing.py | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/test/test_run_modules/test_pre_processing.py b/test/test_run_modules/test_pre_processing.py
index 6646e1a4..9debec9f 100644
--- a/test/test_run_modules/test_pre_processing.py
+++ b/test/test_run_modules/test_pre_processing.py
@@ -45,14 +45,16 @@ class TestPreProcessing:
         with PreProcessing():
             assert caplog.record_tuples[0] == ('root', 20, 'PreProcessing started')
             assert caplog.record_tuples[1] == ('root', 20, 'check valid stations started (preprocessing)')
-            assert caplog.record_tuples[-6] == ('root', 20, PyTestRegex(r'run for \d+:\d+:\d+ \(hh:mm:ss\) to check 3 '
+            assert caplog.record_tuples[-7] == ('root', 20, PyTestRegex(r'run for \d+:\d+:\d+ \(hh:mm:ss\) to check 3 '
                                                                         r'station\(s\). Found 3/3 valid stations.'))
-            assert caplog.record_tuples[-5] == ('root', 20, "use serial create_info_df (train)")
-            assert caplog.record_tuples[-4] == ('root', 20, "use serial create_info_df (val)")
-            assert caplog.record_tuples[-3] == ('root', 20, "use serial create_info_df (test)")
-            assert caplog.record_tuples[-2] == ('root', 20, "Searching for competitors to be prepared for use.")
-            assert caplog.record_tuples[-1] == ('root', 20, "No preparation required for competitor ols as no specific "
+            assert caplog.record_tuples[-6] == ('root', 20, "use serial create_info_df (train)")
+            assert caplog.record_tuples[-5] == ('root', 20, "use serial create_info_df (val)")
+            assert caplog.record_tuples[-4] == ('root', 20, "use serial create_info_df (test)")
+            assert caplog.record_tuples[-3] == ('root', 20, "Searching for competitors to be prepared for use.")
+            assert caplog.record_tuples[-2] == ('root', 20, "No preparation required for competitor ols as no specific "
                                                             "instruction is provided.")
+            assert caplog.record_tuples[-1] == ('root', 20, "No preparation required for competitor persi as no "
+                                                            "specific instruction is provided.")
         RunEnvironment().__del__()
 
     def test_run(self, obj_with_exp_setup):
-- 
GitLab