Handle shell_completion option in test suite

Since [1], oslo.config has added option to generate shell
completion. This patch adapts unit tests to handle it.

[1] https://review.opendev.org/c/openstack/oslo.config/+/906478

Change-Id: I167d7e552194b87edff8d6b6de9e721e091bfd36
This commit is contained in:
Joel Capitao 2024-09-02 16:13:17 +02:00
parent a0cde11455
commit a25f36fa66

View File

@ -112,7 +112,8 @@ class TestOpenstackGenerators(base.BaseTestCase):
'default: \n'
'%s'
' crackers = triscuit\n'
' secrets = ***') % config_source_line
' secrets = ***\n'
' shell_completion = None') % config_source_line
self.assertEqual(target_str, str(model))
def test_package_report_generator(self):