Simplify assertion in tests
This commit is contained in:
parent
456903666c
commit
ef9a286793
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user