Skip to content

Commit e52baa8

Browse files
committed
STY: move doctest conftest under docs
1 parent 511ca84 commit e52baa8

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
@@ -234,7 +234,8 @@ tests = {
234234
}
235235
doctests = {
236236
description = "Run public API doctests",
237-
cmd = "pytest --pyargs array_api_extra --doctest-modules --doctest-collect=api --doctest-only-doctests=true",
237+
cmd = "pytest -c ../pyproject.toml --pyargs array_api_extra --doctest-modules --doctest-collect=api --doctest-only-doctests=true",
238+
cwd = "docs", # to use `docs/conftest.py`
238239
default-environment = "tests",
239240
}
240241
tests-cov = {

0 commit comments

Comments
 (0)