@@ -623,66 +623,59 @@ def test_bom_v1_4_dependencies_for_bom_component(self, mock_uuid: Mock) -> None:
623
623
624
624
@patch ('cyclonedx.model.bom.uuid4' , return_value = MOCK_BOM_UUID_1 )
625
625
def test_bom_v1_3_dependencies_for_bom_component (self , mock_uuid : Mock ) -> None :
626
- with self .assertWarns (UserWarning ):
627
- self ._validate_xml_bom (
628
- bom = get_bom_with_metadata_component_and_dependencies (), schema_version = SchemaVersion .V1_3 ,
629
- fixture = 'bom_dependencies_component.xml'
630
- )
631
- mock_uuid .assert_called ()
626
+ self ._validate_xml_bom (
627
+ bom = get_bom_with_metadata_component_and_dependencies (), schema_version = SchemaVersion .V1_3 ,
628
+ fixture = 'bom_dependencies_component.xml'
629
+ )
630
+ mock_uuid .assert_called ()
632
631
633
632
@patch ('cyclonedx.model.bom.uuid4' , return_value = MOCK_BOM_UUID_1 )
634
633
def test_bom_v1_2_dependencies_for_bom_component (self , mock_uuid : Mock ) -> None :
635
- with self .assertWarns (UserWarning ):
636
- self ._validate_xml_bom (
637
- bom = get_bom_with_metadata_component_and_dependencies (), schema_version = SchemaVersion .V1_2 ,
638
- fixture = 'bom_dependencies_component.xml'
639
- )
640
- mock_uuid .assert_called ()
634
+ self ._validate_xml_bom (
635
+ bom = get_bom_with_metadata_component_and_dependencies (), schema_version = SchemaVersion .V1_2 ,
636
+ fixture = 'bom_dependencies_component.xml'
637
+ )
638
+ mock_uuid .assert_called ()
641
639
642
640
@patch ('cyclonedx.model.bom.uuid4' , return_value = MOCK_BOM_UUID_1 )
643
641
def test_bom_v1_4_issue_275_components (self , mock_uuid : Mock ) -> None :
644
- with self .assertWarns (UserWarning ):
645
- self ._validate_xml_bom (
646
- bom = get_bom_for_issue_275_components (), schema_version = SchemaVersion .V1_4 ,
647
- fixture = 'bom_issue_275_components.xml'
648
- )
649
- mock_uuid .assert_called ()
642
+ self ._validate_xml_bom (
643
+ bom = get_bom_for_issue_275_components (), schema_version = SchemaVersion .V1_4 ,
644
+ fixture = 'bom_issue_275_components.xml'
645
+ )
646
+ mock_uuid .assert_called ()
650
647
651
648
@patch ('cyclonedx.model.bom.uuid4' , return_value = MOCK_BOM_UUID_1 )
652
649
def test_bom_v1_3_issue_275_components (self , mock_uuid : Mock ) -> None :
653
- with self .assertWarns (UserWarning ):
654
- self ._validate_xml_bom (
655
- bom = get_bom_for_issue_275_components (), schema_version = SchemaVersion .V1_3 ,
656
- fixture = 'bom_issue_275_components.xml'
657
- )
658
- mock_uuid .assert_called ()
650
+ self ._validate_xml_bom (
651
+ bom = get_bom_for_issue_275_components (), schema_version = SchemaVersion .V1_3 ,
652
+ fixture = 'bom_issue_275_components.xml'
653
+ )
654
+ mock_uuid .assert_called ()
659
655
660
656
@patch ('cyclonedx.model.bom.uuid4' , return_value = MOCK_BOM_UUID_1 )
661
657
def test_bom_v1_2_issue_275_components (self , mock_uuid : Mock ) -> None :
662
- with self .assertWarns (UserWarning ):
663
- self ._validate_xml_bom (
664
- bom = get_bom_for_issue_275_components (), schema_version = SchemaVersion .V1_2 ,
665
- fixture = 'bom_issue_275_components.xml'
666
- )
667
- mock_uuid .assert_called ()
658
+ self ._validate_xml_bom (
659
+ bom = get_bom_for_issue_275_components (), schema_version = SchemaVersion .V1_2 ,
660
+ fixture = 'bom_issue_275_components.xml'
661
+ )
662
+ mock_uuid .assert_called ()
668
663
669
664
@patch ('cyclonedx.model.bom.uuid4' , return_value = MOCK_BOM_UUID_1 )
670
665
def test_bom_v1_1_issue_275_components (self , mock_uuid : Mock ) -> None :
671
- with self .assertWarns (UserWarning ):
672
- self ._validate_xml_bom (
673
- bom = get_bom_for_issue_275_components (), schema_version = SchemaVersion .V1_1 ,
674
- fixture = 'bom_issue_275_components.xml'
675
- )
676
- mock_uuid .assert_called ()
666
+ self ._validate_xml_bom (
667
+ bom = get_bom_for_issue_275_components (), schema_version = SchemaVersion .V1_1 ,
668
+ fixture = 'bom_issue_275_components.xml'
669
+ )
670
+ mock_uuid .assert_called ()
677
671
678
672
@patch ('cyclonedx.model.bom.uuid4' , return_value = MOCK_BOM_UUID_1 )
679
673
def test_bom_v1_0_issue_275_components (self , mock_uuid : Mock ) -> None :
680
- with self .assertWarns (UserWarning ):
681
- self ._validate_xml_bom (
682
- bom = get_bom_for_issue_275_components (), schema_version = SchemaVersion .V1_0 ,
683
- fixture = 'bom_issue_275_components.xml'
684
- )
685
- mock_uuid .assert_called ()
674
+ self ._validate_xml_bom (
675
+ bom = get_bom_for_issue_275_components (), schema_version = SchemaVersion .V1_0 ,
676
+ fixture = 'bom_issue_275_components.xml'
677
+ )
678
+ mock_uuid .assert_called ()
686
679
687
680
# Helper methods
688
681
def _validate_xml_bom (self , bom : Bom , schema_version : SchemaVersion , fixture : str ) -> None :
0 commit comments