Skip to content

Commit bcc0030

Browse files
committed
use sphinx.testing instead of sphinx_testing
closes #54
1 parent 8fb496b commit bcc0030

28 files changed

+218
-265
lines changed

.github/workflows/python-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
if [[ $SPHINX_VERSION != "" ]]; then
3535
SPHINX="${SPHINX}==${SPHINX_VERSION}";
3636
fi
37-
pip install pytest pytest-cov codecov "${SPHINX}" sphinx-testing -e .
37+
pip install pytest pytest-cov codecov "${SPHINX}" -e .
3838
- name: Test with pytest
3939
run: |
4040
pytest --cov=autodocsumm --cov-report=xml tests

conftest.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import os.path as osp
2+
import sys
3+
import pytest
4+
5+
from sphinx.testing.path import path
6+
7+
pytest_plugins = 'sphinx.testing.fixtures'
8+
9+
10+
11+
sphinx_supp = osp.abspath(osp.join(osp.dirname(__file__), "tests"))
12+
13+
14+
@pytest.fixture(scope='session')
15+
def rootdir():
16+
return path(sphinx_supp)
17+
18+
19+
sys.path.insert(0, osp.join(sphinx_supp, "test-root"))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ def readme():
3939
'Sphinx>=2.2',
4040
],
4141
setup_requires=pytest_runner,
42-
tests_require=['pytest', 'sphinx-testing'],
42+
tests_require=['pytest'],
4343
zip_safe=False)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)