tests: Improve some parametrized test IDs.

This commit is contained in:
Florian Bruhin 2015-11-27 16:25:25 +01:00
parent f3c378858b
commit be4cf19bb1
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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.