diff options
author | Tomas Babej <tbabej@redhat.com> | 2014-12-18 11:44:40 +0100 |
---|---|---|
committer | Tomas Babej <tbabej@redhat.com> | 2015-01-14 11:55:01 +0100 |
commit | 5416652f6f15de4cc2140a58466facdf07c70965 (patch) | |
tree | 0087f46370c9f5d711d175198da3014ed41b9c13 /ipatests | |
parent | f07607b7cb90af2da653e7f1b9b6497b301ec790 (diff) | |
download | freeipa-5416652f6f15de4cc2140a58466facdf07c70965.tar.gz freeipa-5416652f6f15de4cc2140a58466facdf07c70965.tar.xz freeipa-5416652f6f15de4cc2140a58466facdf07c70965.zip |
ipatests: Make descriptions sorted according to the order of the tests
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipatests')
-rw-r--r-- | ipatests/pytest_plugins/declarative.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipatests/pytest_plugins/declarative.py b/ipatests/pytest_plugins/declarative.py index 1c24cf93d..64e9b0bcd 100644 --- a/ipatests/pytest_plugins/declarative.py +++ b/ipatests/pytest_plugins/declarative.py @@ -28,12 +28,12 @@ def pytest_generate_tests(metafunc): descriptions = [] for i, test in enumerate(metafunc.cls.tests): if callable(test): - description = '%d: %s' % ( - i, + description = '%s: %s' % ( + str(i).zfill(4), test.__name__, # test is not a dict. pylint: disable=E1103 ) else: - description = '%d: %s: %s' % (i, + description = '%s: %s: %s' % (str(i).zfill(4), test['command'][0], test.get('desc', '')) test = dict(test) |