Skip to content

Commit 7d22c37

Browse files
committed
tests
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 519395e commit 7d22c37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_model_vulnerability.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,12 @@ def test_sort(self) -> None:
258258
source_b = VulnerabilitySource(name='b')
259259

260260
# expected sort order: ([id], [source])
261-
expected_order = [0, 1, 2, 3]
261+
expected_order = [2, 3, 1, 0]
262262
refs = [
263+
VulnerabilityReference(id='b', source=source_b),
264+
VulnerabilityReference(id='b', source=source_a),
263265
VulnerabilityReference(id='a', source=source_a),
264266
VulnerabilityReference(id='a', source=source_b),
265-
VulnerabilityReference(id='b', source=source_a),
266-
VulnerabilityReference(id='b', source=source_b),
267267
]
268268
sorted_refs = sorted(refs)
269269
expected_refs = reorder(refs, expected_order)

0 commit comments

Comments
 (0)