cloudkitty/cloudkitty/tests
Chaozhe.Chen f9b52a93bb Test: make enforce_type=True in CONF.set_override
Method CONF.set_override to change config option's
value with designated value in unit test, but never check if the
designated vaule is valid. Each config option has a type like StrOpt,
BoolOpt, etc. StrOpt with parameter choices only allows values in set
of choices. In short, each config option has limitation for type
and value. In production code, oslo.conf can ensure user's input is
valid, but in unit test, test methods can pass if we use method
CONF.set_override without parameter enforce_type=True even we pass wrong
type or wrong value to config option. This commit makes sure calling
method CONF.set_override with enforce_type=True and fixes violations.

Change-Id: Ibf5570b74947b071b96aa7ca4a682affb137d065
Related-Bug: #1517839
2016-01-11 17:48:39 +08:00
..
gabbi Test: make enforce_type=True in CONF.set_override 2016-01-11 17:48:39 +08:00
storage Test: make enforce_type=True in CONF.set_override 2016-01-11 17:48:39 +08:00
__init__.py Test: make enforce_type=True in CONF.set_override 2016-01-11 17:48:39 +08:00
samples.py Added unit tests for storage drivers 2015-11-27 05:49:40 +00:00
test_config.py Fix the config sample generator method 2015-05-06 09:53:53 +02:00
test_hashmap.py remove rating no match case 2016-01-02 01:30:44 +08:00
test_keystone_fetcher.py Test: make enforce_type=True in CONF.set_override 2016-01-11 17:48:39 +08:00
test_orchestrator.py Test: make enforce_type=True in CONF.set_override 2016-01-11 17:48:39 +08:00
test_pyscripts.py Added new rating module PyScripts 2015-10-15 17:43:27 +02:00
test_rating.py Added support for rating module priority 2015-04-20 11:08:59 +02:00
test_state.py Using UTC datetimes in StateManager tests 2014-11-19 11:49:46 +01:00
test_utils.py Fixed mock tests failing due to deprecation 2015-07-24 14:53:21 +02:00