[v1.x] Pass a list to parametrize in test_docs_examples (pytest 9.1.0 compat) (#2889)
Some checks failed
Main branch checks / checks (push) Has been cancelled

This commit is contained in:
Max 2026-06-16 22:29:51 +01:00 • committed by GitHub
commit 32d32908fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,7 @@ async def test_desktop(monkeypatch: pytest.MonkeyPatch):
assert "/fake/path/file2.txt" in content.text
@pytest.mark.parametrize("example", find_examples("README.md"), ids=str)
@pytest.mark.parametrize("example", list(find_examples("README.md")), ids=str)
def test_docs_examples(example: CodeExample, eval_example: EvalExample):
ruff_ignore: list[str] = ["F841", "I001", "F821"] # F821: undefined names (snippets lack imports)