Skip to content

Commit 334bd05

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 27918f7 commit 334bd05

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cyclonedx/model/vulnerability.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,8 +1334,9 @@ def properties(self, properties: Iterable[Property]) -> None:
13341334

13351335
def __comparable_tuple(self) -> _ComparableTuple:
13361336
return _ComparableTuple((
1337-
self.id, self.description, _ComparableTuple(self.ratings), _ComparableTuple(self.cwes),
1337+
self.id,
13381338
self.source, _ComparableTuple(self.references),
1339+
_ComparableTuple(self.ratings), _ComparableTuple(self.cwes), self.description,
13391340
self.detail, self.recommendation, self.workaround, _ComparableTuple(self.advisories),
13401341
self.created, self.published, self.updated,
13411342
self.credits, self.tools, self.analysis,

tests/test_model_vulnerability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def test_sort(self) -> None:
188188
datetime2 = datetime1 + timedelta(seconds=5)
189189

190190
# expected sort order: (id, description, detail, source, created, published)
191-
expected_order = [0, 6, 1, 7, 2, 8, 3, 9, 4, 10, 5, 11]
191+
expected_order = [0, 6,1,7,2,9,10,8,3,4,5,11]
192192
vulnerabilities = [
193193
Vulnerability(bom_ref='0', id='a', description='a', detail='a',
194194
source=source1, created=datetime1, published=datetime1),

0 commit comments

Comments
 (0)