From 523d48b2361193b1772ee3bcad85afef80dfacd5 Mon Sep 17 00:00:00 2001 From: Hakan Dilek Date: Mon, 28 Oct 2024 14:05:33 +0100 Subject: [PATCH 1/2] docs: Fix the doc strings regarding Definitions Signed-off-by: Hakan Dilek --- cyclonedx/model/bom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyclonedx/model/bom.py b/cyclonedx/model/bom.py index 03809f2d..65c578fb 100644 --- a/cyclonedx/model/bom.py +++ b/cyclonedx/model/bom.py @@ -563,7 +563,7 @@ def definitions(self) -> Optional[Definitions]: The repository for definitions Returns: - `DefinitionRepository` + `Definitions` """ return self._definitions if len(self._definitions.standards) > 0 else None From 7d159863308e98d6c3f6822e34b987def6b271dc Mon Sep 17 00:00:00 2001 From: Hakan Dilek Date: Mon, 28 Oct 2024 14:05:40 +0100 Subject: [PATCH 2/2] fix: correct the unit test name for Definitions Signed-off-by: Hakan Dilek --- tests/test_model_definition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_model_definition.py b/tests/test_model_definition.py index 5a1b80f3..a464bfcd 100644 --- a/tests/test_model_definition.py +++ b/tests/test_model_definition.py @@ -21,7 +21,7 @@ from cyclonedx.model.definition import Definitions, Standard -class TestModelDefinitionRepository(TestCase): +class TestModelDefinitions(TestCase): def test_init(self) -> Definitions: s = Standard(name='test-standard')