From 71d7811a3e2d84d2cc279280ab82bc26a155e40a Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Tue, 23 May 2017 12:21:48 -0400 Subject: [PATCH] Fix unit using incorrect type in fake default This commit fixes a bug in the subunit2sql shell unit tests. The test sets a fake default value to check it gets set properly later in the tests. However, newer versions of oslo config do type checking and this option was expecting a dict, not a string. This commit fixes this by setting it the fake value to be a dict so we don't fail in oslo.config anymore. Change-Id: I5830cb271e5c0c20637323b52fced1483209ec96 --- subunit2sql/tests/test_shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subunit2sql/tests/test_shell.py b/subunit2sql/tests/test_shell.py index 9306fd1..d6cb693 100644 --- a/subunit2sql/tests/test_shell.py +++ b/subunit2sql/tests/test_shell.py @@ -258,7 +258,7 @@ class TestProcessResults(base.TestCase): cfg.CONF.set_override(name='artifacts', override=fake_artifacts) fake_run_id = 'run_id' cfg.CONF.set_override(name='run_id', override=fake_run_id) - fake_run_meta = 'run_meta' + fake_run_meta = {'run_meta': 'value'} cfg.CONF.set_override(name='run_meta', override=fake_run_meta) # Run process_results shell.process_results(fake_results)