mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
ipatests: Make descriptions sorted according to the order of the tests
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
parent
f07607b7cb
commit
5416652f6f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user