Simplify assertion in tests

This commit is contained in:
Maxwell G 2023-04-01 00:41:46 +02:00 committed by Miro Hrončok
parent 456903666c
commit ef9a286793

View File

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