From 71ef5d3fb25b8b3331fa1b078cdf002434038114 Mon Sep 17 00:00:00 2001 From: Jacob Wahlman Date: Mon, 26 Aug 2024 15:08:50 +0200 Subject: [PATCH] Minor formatting fixues in tests Signed-off-by: Jacob Wahlman --- tests/test_enums.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/test_enums.py b/tests/test_enums.py index ab551c77..b0b35341 100644 --- a/tests/test_enums.py +++ b/tests/test_enums.py @@ -400,16 +400,18 @@ def test_knows_value(self, value: str) -> None: @patch('cyclonedx.model.ThisTool._version', 'TESTING') def test_cases_render_valid(self, of: OutputFormat, sv: SchemaVersion, *_: Any, **__: Any) -> None: if OutputFormat.XML is of: - schema_cases = set(dp_cases_from_xml_schema(SCHEMA_XML[sv], _DP_ComponentIdentityEvidenceField.XML_SCHEMA_XPATH)) + schema_cases = set(dp_cases_from_xml_schema( + SCHEMA_XML[sv], _DP_ComponentIdentityEvidenceField.XML_SCHEMA_XPATH)) elif OutputFormat.JSON is of: - schema_cases = set(dp_cases_from_json_schema(SCHEMA_JSON[sv], _DP_ComponentIdentityEvidenceField.JSON_SCHEMA_POINTER)) + schema_cases = set(dp_cases_from_json_schema( + SCHEMA_JSON[sv], _DP_ComponentIdentityEvidenceField.JSON_SCHEMA_POINTER)) else: raise ValueError(f'unexpected of: {of!r}') - + bom = _make_bom(components=[ Component(bom_ref='dummy', name='dummy', evidence=ComponentEvidence( copyright=[ - Copyright(text="Dummy") + Copyright(text='Dummy') ], identity=[ ComponentIdentityEvidence( @@ -430,11 +432,11 @@ def test_cases_render_raises_on_unsupported(self, of: OutputFormat, sv: SchemaVe # componentIdentityEvidence type was not added until 1.5 if sv.value < (1, 5): return True - + bom = _make_bom(components=[ Component(bom_ref='dummy', name='dummy', evidence=ComponentEvidence( copyright=[ - Copyright(text="Dummy") + Copyright(text='Dummy') ], identity=[ ComponentIdentityEvidence(