Simplify assertion in tests

Related: rhbz#2208971
This commit is contained in:
Maxwell G 2023-04-01 00:41:46 +02:00 committed by Miro Hrončok
parent e9b491535c
commit fb9a851ec3

View File

@ -77,7 +77,7 @@ def test_data(case_name, capfd, tmp_path, monkeypatch):
expected = case['expected']
if isinstance(expected, list):
# at least one of them needs to match
assert any(dependencies == e for e in expected)
assert dependencies in expected
else:
assert dependencies == expected