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 31
31
32
32
OUR_PACKAGE_NAME : str = 'cyclonedx-python-lib'
33
33
OUR_PACKAGE_VERSION : str = pkg_resources .get_distribution (OUR_PACKAGE_NAME ).version
34
+ OUR_PACKAGE_AUTHOR : str = 'Paul Horton'
34
35
35
36
36
37
class TestE2EEnvironment (TestCase ):
@@ -44,7 +45,7 @@ def test_json_defaults(self):
44
45
)
45
46
46
47
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 )
48
49
self .assertEqual (component_this_library ['name' ], OUR_PACKAGE_NAME )
49
50
self .assertEqual (component_this_library ['version' ], OUR_PACKAGE_VERSION )
50
51
@@ -61,7 +62,7 @@ def test_xml_defaults(self):
61
62
62
63
author = component_this_library .find ('./{{{}}}author' .format (outputter .get_target_namespace ()))
63
64
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 )
65
66
66
67
name = component_this_library .find ('./{{{}}}name' .format (outputter .get_target_namespace ()))
67
68
self .assertIsNotNone (name , 'No name element but one was expected.' )
You can’t perform that action at this time.
0 commit comments