tests: Fix broken parametrization id functions
This commit is contained in:
parent
185904070a
commit
1c7667014a
@ -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():
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user