Skip to content

Commit bbda889

Browse files
authored
Merge pull request #2101 from bsipocz/enabling_docs_testing
Enabling rst docs testing
2 parents 304ab75 + d3c8152 commit bbda889

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

setup.cfg

Lines changed: 5 additions & 1 deletion
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:
@@ -135,7 +137,9 @@ install_requires=
135137
keyring>=4.0
136138
pyvo>=1.1
137139
six
138-
tests_require = pytest-astropy
140+
tests_require =
141+
pytest-doctestplus>=0.9
142+
pytest-astropy
139143

140144
[options.extras_require]
141145
test=

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)