@@ -33,7 +33,7 @@ def test_make_from_string_with_id(self) -> None:
3333 expected = DisjunctiveLicense (id = 'bar' , text = text , url = url , acknowledgement = acknowledgement )
3434
3535 with unittest .mock .patch ('cyclonedx.factory.license.spdx_fixup' , return_value = 'bar' ), \
36- unittest .mock .patch ('cyclonedx.factory.license.is_spdx_compound_expression ' , return_value = True ):
36+ unittest .mock .patch ('cyclonedx.factory.license.is_spdx_expression ' , return_value = True ):
3737 actual = LicenseFactory ().make_from_string ('foo' ,
3838 license_text = text ,
3939 license_url = url ,
@@ -48,7 +48,7 @@ def test_make_from_string_with_name(self) -> None:
4848 expected = DisjunctiveLicense (name = 'foo' , text = text , url = url , acknowledgement = acknowledgement )
4949
5050 with unittest .mock .patch ('cyclonedx.factory.license.spdx_fixup' , return_value = None ), \
51- unittest .mock .patch ('cyclonedx.factory.license.is_spdx_compound_expression ' , return_value = False ):
51+ unittest .mock .patch ('cyclonedx.factory.license.is_spdx_expression ' , return_value = False ):
5252 actual = LicenseFactory ().make_from_string ('foo' ,
5353 license_text = text ,
5454 license_url = url ,
@@ -61,7 +61,7 @@ def test_make_from_string_with_expression(self) -> None:
6161 expected = LicenseExpression ('foo' , acknowledgement = acknowledgement )
6262
6363 with unittest .mock .patch ('cyclonedx.factory.license.spdx_fixup' , return_value = None ), \
64- unittest .mock .patch ('cyclonedx.factory.license.is_spdx_compound_expression ' , return_value = True ):
64+ unittest .mock .patch ('cyclonedx.factory.license.is_spdx_expression ' , return_value = True ):
6565 actual = LicenseFactory ().make_from_string ('foo' ,
6666 license_acknowledgement = acknowledgement )
6767
@@ -94,11 +94,11 @@ def test_make_with_name(self) -> None:
9494 def test_make_with_expression (self ) -> None :
9595 acknowledgement = unittest .mock .NonCallableMock (spec = LicenseAcknowledgement )
9696 expected = LicenseExpression ('foo' , acknowledgement = acknowledgement )
97- with unittest .mock .patch ('cyclonedx.factory.license.is_spdx_compound_expression ' , return_value = True ):
97+ with unittest .mock .patch ('cyclonedx.factory.license.is_spdx_expression ' , return_value = True ):
9898 actual = LicenseFactory ().make_with_expression (expression = 'foo' , acknowledgement = acknowledgement )
9999 self .assertEqual (expected , actual )
100100
101101 def test_make_with_expression_raises (self ) -> None :
102102 with self .assertRaises (InvalidLicenseExpressionException , msg = 'foo' ):
103- with unittest .mock .patch ('cyclonedx.factory.license.is_spdx_compound_expression ' , return_value = False ):
103+ with unittest .mock .patch ('cyclonedx.factory.license.is_spdx_expression ' , return_value = False ):
104104 LicenseFactory ().make_with_expression ('foo' )
0 commit comments