move registration of public markers to sphinx.testing.fixtures

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
oleg.hoefling
2020-10-08 17:08:18 +02:00
parent ad7c09ef10
commit 35725f02d9
2 changed files with 15 additions and 2 deletions

View File

@@ -57,10 +57,8 @@ filterwarnings =
ignore::DeprecationWarning:pyximport.pyximport
ignore::PendingDeprecationWarning:sphinx.util.pycompat
markers =
sphinx
apidoc
setup_command
test_params
testpaths = tests
[coverage:run]

View File

@@ -22,6 +22,21 @@ from sphinx.testing import util
from sphinx.testing.util import SphinxTestApp, SphinxTestAppWrapperForSkipBuilding
markers = [
(
'sphinx(builder, testroot=None, freshenv=False, confoverrides=None, tags=None,'
' docutilsconf=None, parallel=0): arguments to initialize the sphinx test application.'
),
'test_params(shared_result=...): test parameters.',
]
def pytest_configure(config):
# register custom markers
for marker in markers:
config.addinivalue_line('markers', marker)
@pytest.fixture(scope='session')
def rootdir() -> str:
return None