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
This commit is contained in:
parent
3cce87ac3b
commit
71d7811a3e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user