Skip to content

Commit d1c9d37

Browse files
committed
fix(test): test was not updated for revised author statement
Signed-off-by: Paul Horton <[email protected]>
1 parent 9a2cfe9 commit d1c9d37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_e2e_environment.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
OUR_PACKAGE_NAME: str = 'cyclonedx-python-lib'
3333
OUR_PACKAGE_VERSION: str = pkg_resources.get_distribution(OUR_PACKAGE_NAME).version
34+
OUR_PACKAGE_AUTHOR: str = 'Paul Horton'
3435

3536

3637
class 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.')

0 commit comments

Comments
 (0)