Pass a list to parametrize in test_docs_examples (pytest 9.1.0 compat) (#2890)
This commit is contained in:
parent
47bbab3bc3
commit
df81c06221
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ async def test_desktop(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
|
|||
|
||||
|
||||
# TODO(v2): Change back to README.md when v2 is released
|
||||
@pytest.mark.parametrize("example", find_examples("README.v2.md"), ids=str)
|
||||
@pytest.mark.parametrize("example", list(find_examples("README.v2.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