From 6bffa6f58ad7b9c62fb452bdf1078cc62726b928 Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Tue, 13 Jun 2023 16:38:49 +0200 Subject: [PATCH] adapt tests to another unsorted key --- tests/test_report.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_report.py b/tests/test_report.py index 5fbc160b9..6586a69dc 100644 --- a/tests/test_report.py +++ b/tests/test_report.py @@ -439,8 +439,11 @@ def test_generate_project_report_to_dict_lint(fake_repository, multiprocessing): "reuse_tool_version", ] + # Check if the recommendation key is at the bottom of the dictionary + assert list(result.keys())[-1] == "recommendations" + # Check if the rest of the keys are sorted alphabetically - assert list(result.keys())[3:] == sorted(list(result.keys())[3:]) + assert list(result.keys())[3:-1] == sorted(list(result.keys())[3:-1]) def test_bill_of_materials(fake_repository, multiprocessing):