Skip to content

Commit 519395e

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

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/test_model_vulnerability.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,16 +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, 4, 2, 3, 5, 6, 7]
261+
expected_order = [0, 1, 2, 3]
262262
refs = [
263263
VulnerabilityReference(id='a', source=source_a),
264264
VulnerabilityReference(id='a', source=source_b),
265265
VulnerabilityReference(id='b', source=source_a),
266266
VulnerabilityReference(id='b', source=source_b),
267-
VulnerabilityReference(id='a'),
268-
VulnerabilityReference(id='b'),
269-
VulnerabilityReference(source=source_a),
270-
VulnerabilityReference(source=source_b),
271267
]
272268
sorted_refs = sorted(refs)
273269
expected_refs = reorder(refs, expected_order)

0 commit comments

Comments
 (0)