Skip to content

Commit

Permalink
adapt tests to another unsorted key
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmehl committed Jun 13, 2023
1 parent 7fce296 commit 1a08a4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,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):
Expand Down

0 comments on commit 1a08a4f

Please sign in to comment.