Skip to content

Commit 83a8175

Browse files
authored
STY: move doctest conftest under docs (#973)
1 parent e266ce9 commit 83a8175

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

conftest.py renamed to docs/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Configure tests."""
1+
"""Configure doctests."""
22

33
import warnings
44
from collections.abc import Iterator

pixi.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ tests = {
233233
}
234234
doctests = {
235235
description = "Run public API doctests",
236-
cmd = "pytest --pyargs array_api_extra --doctest-modules --doctest-collect=api --doctest-only-doctests=true",
236+
cmd = "pytest -c ../pyproject.toml --pyargs array_api_extra --doctest-modules --doctest-collect=api --doctest-only-doctests=true",
237+
cwd = "docs", # to use `docs/conftest.py`
237238
default-environment = "tests",
238239
}
239240
tests-cov = {

0 commit comments

Comments
 (0)