File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3131
3232OUR_PACKAGE_NAME : str = 'cyclonedx-python-lib'
3333OUR_PACKAGE_VERSION : str = pkg_resources .get_distribution (OUR_PACKAGE_NAME ).version
34+ OUR_PACKAGE_AUTHOR : str = 'Paul Horton'
3435
3536
3637class TestE2EEnvironment (TestCase ):
@@ -44,7 +45,7 @@ def test_json_defaults(self):
4445 )
4546
4647 self .assertTrue ('author' in component_this_library .keys (), 'author is missing from JSON BOM' )
47- self .assertEqual (component_this_library ['author' ], 'Sonatype Community' )
48+ self .assertEqual (component_this_library ['author' ], OUR_PACKAGE_AUTHOR )
4849 self .assertEqual (component_this_library ['name' ], OUR_PACKAGE_NAME )
4950 self .assertEqual (component_this_library ['version' ], OUR_PACKAGE_VERSION )
5051
@@ -61,7 +62,7 @@ def test_xml_defaults(self):
6162
6263 author = component_this_library .find ('./{{{}}}author' .format (outputter .get_target_namespace ()))
6364 self .assertIsNotNone (author , 'No author element but one was expected.' )
64- self .assertEqual (author .text , 'Sonatype Community' )
65+ self .assertEqual (author .text , OUR_PACKAGE_AUTHOR )
6566
6667 name = component_this_library .find ('./{{{}}}name' .format (outputter .get_target_namespace ()))
6768 self .assertIsNotNone (name , 'No name element but one was expected.' )
You can’t perform that action at this time.
0 commit comments