diff --git a/tests/data.py b/tests/data.py index 387b8737f..4fa73737e 100644 --- a/tests/data.py +++ b/tests/data.py @@ -337,18 +337,18 @@ def get_bom_for_issue_275_components() -> Bom: return bom -def get_bom_for_issue_275_services() -> Bom: - app = Component(name="app", version="1.0.0") - serv_a = Service(name='Service A') - serv_b = Service(name='Service B') - serv_c = Service(name='Service C') - - serv_b.services.add(serv_c) - serv_b.dependencies.add(serv_c.bom_ref) - - bom = Bom(services=[serv_a, serv_b]) - bom.metadata.component = app - return bom +# def get_bom_for_issue_275_services() -> Bom: +# app = Component(name="app", version="1.0.0") +# serv_a = Service(name='Service A') +# serv_b = Service(name='Service B') +# serv_c = Service(name='Service C') +# +# serv_b.services.add(serv_c) +# serv_b.dependencies.add(serv_c.bom_ref) +# +# bom = Bom(services=[serv_a, serv_b]) +# bom.metadata.component = app +# return bom def get_component_setuptools_complete(include_pedigree: bool = True) -> Component: diff --git a/tests/test_model_bom.py b/tests/test_model_bom.py index 097a9d101..6636d8638 100644 --- a/tests/test_model_bom.py +++ b/tests/test_model_bom.py @@ -19,12 +19,10 @@ from unittest import TestCase -from data import get_bom_for_issue_275_components, get_bom_with_component_setuptools_with_vulnerability - from cyclonedx.model import License, LicenseChoice, OrganizationalContact, OrganizationalEntity, Property from cyclonedx.model.bom import Bom, BomMetaData, ThisTool, Tool from cyclonedx.model.component import Component, ComponentType -from tests.data import get_bom_for_issue_275_services +from data import get_bom_for_issue_275_components, get_bom_with_component_setuptools_with_vulnerability class TestBomMetaData(TestCase): @@ -124,8 +122,8 @@ def test_bom_nested_components_issue_275(self) -> None: self.assertEqual(2, len(bom.components)) bom.validate() - def test_bom_nested_services_issue_275(self) -> None: - bom = get_bom_for_issue_275_services() - self.assertIsInstance(bom.metadata.component, Component) - self.assertEqual(2, len(bom.services)) - bom.validate() + # def test_bom_nested_services_issue_275(self) -> None: + # bom = get_bom_for_issue_275_services() + # self.assertIsInstance(bom.metadata.component, Component) + # self.assertEqual(2, len(bom.services)) + # bom.validate()