From d24feefaccf53b0561cb7096342a44c5a009754f Mon Sep 17 00:00:00 2001 From: Aliaksandr Nikitsin Date: Tue, 25 Feb 2025 12:58:11 +0100 Subject: [PATCH 1/2] fix pilot report steps to resolve --- resources/test_packs/pilot/test_pack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/test_packs/pilot/test_pack.py b/resources/test_packs/pilot/test_pack.py index 42cbe2dcc..9436c3535 100644 --- a/resources/test_packs/pilot/test_pack.py +++ b/resources/test_packs/pilot/test_pack.py @@ -46,7 +46,7 @@ def get_steps_to_resolve(json_data): # Collect all tests with recommendations for test in json_data["tests"]["results"]: - if "optional_recommendations" in test: + if "recommendations" in test: steps.append(test) if len(steps) < 3: From d04d1fa8cf89595d19dbd600bf977e0aa20fc5e8 Mon Sep 17 00:00:00 2001 From: Aliaksandr Nikitsin Date: Tue, 25 Feb 2025 14:14:20 +0100 Subject: [PATCH 2/2] fix presence of empty steps to resolve --- resources/test_packs/pilot/test_pack.py | 5 +++-- resources/test_packs/qualification/test_pack.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/test_packs/pilot/test_pack.py b/resources/test_packs/pilot/test_pack.py index 9436c3535..35174a536 100644 --- a/resources/test_packs/pilot/test_pack.py +++ b/resources/test_packs/pilot/test_pack.py @@ -48,8 +48,9 @@ def get_steps_to_resolve(json_data): for test in json_data["tests"]["results"]: if "recommendations" in test: steps.append(test) - - if len(steps) < 3: + if not steps: + return steps + elif len(steps) < 3: return [steps] splitted = [steps[:3]] index = 3 diff --git a/resources/test_packs/qualification/test_pack.py b/resources/test_packs/qualification/test_pack.py index 4dee8c12e..d3f3cc9ac 100644 --- a/resources/test_packs/qualification/test_pack.py +++ b/resources/test_packs/qualification/test_pack.py @@ -44,8 +44,9 @@ def get_steps_to_resolve(json_data): for test in json_data["tests"]["results"]: if "recommendations" in test: steps.append(test) - - if len(steps) < 4: + if not steps: + return steps + elif len(steps) < 4: return [steps] splitted = [steps[:4]] index = 4