masakari/masakari/tests
Dinesh Bhor d4f982449e Use os-testr instead of testr
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
2017-07-05 17:37:52 +05:30
..
unit Use os-testr instead of testr 2017-07-05 17:37:52 +05:30
__init__.py Initial Cookiecutter Commit. 2016-06-28 13:28:27 +09:00
base.py Add support for wsgi framework 2016-07-12 13:10:10 +05:30
fixtures.py Add database related test cases 2016-12-09 18:30:55 +05:30
uuidsentinel.py Remove redundant str typecasting 2016-09-23 12:55:49 +05:30