d4f982449e
Masakari should use ostestr instead of testr. ostestr is more powerful and provide much prettier output than testr. Other projects like cinder, nova, glance, neutron etc already uses the ostestr wrapper. Using ostestr shows each tests execution separately because of which it has shown errors related to "KeyError" in existing test cases. The error looks like below: "Exception in string format operation: KeyError: u'id'" This happens if we don't pass keyword argument like "id" to exception which we expect to be raised from test through side_effect [1]. This doesn't lead to test failure but it appears in test logs. This patch fixes such issues by passing expected keyword arguments to exceptions. [1] https://github.com/openstack/masakari/blob/master/masakari/tests/unit/api/openstack/ha/test_hosts.py#L364 Change-Id: I91603ea3dcf35fd20a00dcf477b93d612edca362 |
||
---|---|---|
.. | ||
api | ||
cmd | ||
compute | ||
db | ||
engine | ||
ha | ||
monkey_patch_example | ||
objects | ||
__init__.py | ||
conf_fixture.py | ||
fake_notifier.py | ||
fake_policy.py | ||
fakes.py | ||
matchers.py | ||
policy_fixture.py | ||
test_api_validation.py | ||
test_conf.py | ||
test_context.py | ||
test_exception.py | ||
test_hacking.py | ||
test_policy.py | ||
test_rpc.py | ||
test_safeutils.py | ||
test_service.py | ||
test_utils.py | ||
test_versions.py | ||
test_wsgi.py | ||
utils.py |