tests: Fix broken parametrization id functions

This commit is contained in:
Florian Bruhin 2018-10-24 09:12:38 +02:00
parent 185904070a
commit 1c7667014a
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ def test_parse_fatal_stacktrace(text, typ, func):
),
({'LANGUAGE': 'foo', 'LANG': 'en_US.UTF-8'}, "LANG = en_US.UTF-8"),
({'FOO': 'bar', 'QUTE_BLAH': '1'}, "QUTE_BLAH = 1"),
], ids=lambda e: e[1])
])
def test_get_environment_vars(monkeypatch, env, expected):
"""Test for crashdialog._get_environment_vars."""
for key in os.environ.copy():

View File

@ -131,7 +131,7 @@ class TestSplit:
"""Test split."""
@pytest.fixture(params=list(_parse_split_test_data_str()),
ids=lambda e: e.input)
ids=lambda e: e.inp)
def split_test_case(self, request):
"""Fixture to automatically parametrize all depending tests.