[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
Some checks failed
Main branch checks / checks (push) Has been cancelled
This commit is contained in:
parent
0dca751056
commit
32d32908fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue