tests: Improve some parametrized test IDs.
This commit is contained in:
parent
f3c378858b
commit
be4cf19bb1
@ -203,7 +203,7 @@ def _generate_cmdline_tests():
|
||||
yield TestCase(''.join(item), True)
|
||||
|
||||
|
||||
@pytest.fixture(params=_generate_cmdline_tests())
|
||||
@pytest.fixture(params=_generate_cmdline_tests(), ids=lambda e: e.cmd)
|
||||
def cmdline_test(request):
|
||||
"""Fixture which generates tests for things validating commandlines."""
|
||||
# Import qutebrowser.app so all cmdutils.register decorators get run.
|
||||
|
@ -126,7 +126,7 @@ class TestSplit:
|
||||
|
||||
"""Test split."""
|
||||
|
||||
@pytest.fixture(params=_parse_split_test_data_str())
|
||||
@pytest.fixture(params=_parse_split_test_data_str(), ids=lambda e: e.input)
|
||||
def split_test_case(self, request):
|
||||
"""Fixture to automatically parametrize all depending tests.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user