Skip to content

Commit 49fc262

Browse files
committed
Enabling tests in rst docs files. Most are still skipped, they will be enabled incrementally in deprate PRs
1 parent 304ab75 commit 49fc262

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ show-response = 1
1616
minversion = 6.0
1717
norecursedirs = build docs/_build docs/gallery-examples
1818
doctest_plus = enabled
19+
astropy_header = true
1920
text_file_format = rst
2021
xfail_strict = true
2122
remote_data_strict = true
23+
addopts = --doctest-rst
2224
filterwarnings =
2325
error
2426
ignore: Experimental:UserWarning:

tox.ini

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ extras =
4444

4545
commands =
4646
pip freeze
47-
# FIXME: there are too many failures from the docs example gallery ignore docs for now
48-
# !cov: pytest {toxinidir}/astroquery {toxinidir}/docs {posargs}
49-
!cov: pytest --pyargs astroquery {posargs}
50-
cov: pytest --pyargs astroquery --cov astroquery {posargs}
47+
# FIXME: there are too many failures in the docs example gallery, ignore it for now
48+
!cov: pytest --pyargs astroquery {toxinidir}/docs --ignore={toxinidir}/docs/gallery* {posargs}
49+
cov: pytest --pyargs astroquery {toxinidir}/docs --ignore={toxinidir}/docs/gallery* --cov astroquery {posargs}
5150
cov: coverage xml -o {toxinidir}/coverage.xml
5251

5352
[testenv:codestyle]

0 commit comments

Comments
 (0)