33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From a25f36fa6620ee3f90a37599e41dac311a49c452 Mon Sep 17 00:00:00 2001
|
|
From: Joel Capitao <jcapitao@redhat.com>
|
|
Date: Mon, 2 Sep 2024 16:13:17 +0200
|
|
Subject: [PATCH] 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
|
|
---
|
|
oslo_reports/tests/test_openstack_generators.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/oslo_reports/tests/test_openstack_generators.py b/oslo_reports/tests/test_openstack_generators.py
|
|
index 3cb0378..9bda519 100644
|
|
--- a/oslo_reports/tests/test_openstack_generators.py
|
|
+++ b/oslo_reports/tests/test_openstack_generators.py
|
|
@@ -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):
|
|
--
|
|
2.46.0
|
|
|