mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Move apidoc tests to subfolder, rather than polluting main test
This commit is contained in:
parent
3e7bee5836
commit
18d2e2e48b
@ -62,7 +62,7 @@ def test_simple(make_app, apidoc):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.apidoc(
|
@pytest.mark.apidoc(
|
||||||
coderoot=(rootdir / 'root' / 'pep_0420'),
|
coderoot=(rootdir / 'roots' / 'test-apidoc-pep420'),
|
||||||
options=["--implicit-namespaces"],
|
options=["--implicit-namespaces"],
|
||||||
)
|
)
|
||||||
def test_pep_0420_enabled(make_app, apidoc):
|
def test_pep_0420_enabled(make_app, apidoc):
|
||||||
@ -89,7 +89,7 @@ def test_pep_0420_enabled(make_app, apidoc):
|
|||||||
print(app._warning.getvalue())
|
print(app._warning.getvalue())
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.apidoc(coderoot=(rootdir / 'root' / 'pep_0420'))
|
@pytest.mark.apidoc(coderoot=(rootdir / 'roots' / 'test-apidoc-pep420'))
|
||||||
def test_pep_0420_disabled(make_app, apidoc):
|
def test_pep_0420_disabled(make_app, apidoc):
|
||||||
outdir = apidoc.outdir
|
outdir = apidoc.outdir
|
||||||
assert (outdir / 'conf.py').isfile()
|
assert (outdir / 'conf.py').isfile()
|
||||||
@ -102,7 +102,8 @@ def test_pep_0420_disabled(make_app, apidoc):
|
|||||||
print(app._warning.getvalue())
|
print(app._warning.getvalue())
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.apidoc(coderoot=(rootdir / 'root' / 'pep_0420' / 'a' / 'b'))
|
@pytest.mark.apidoc(
|
||||||
|
coderoot=(rootdir / 'roots' / 'test-apidoc-pep420' / 'a' / 'b'))
|
||||||
def test_pep_0420_disabled_top_level_verify(make_app, apidoc):
|
def test_pep_0420_disabled_top_level_verify(make_app, apidoc):
|
||||||
outdir = apidoc.outdir
|
outdir = apidoc.outdir
|
||||||
assert (outdir / 'conf.py').isfile()
|
assert (outdir / 'conf.py').isfile()
|
||||||
@ -120,7 +121,8 @@ def test_pep_0420_disabled_top_level_verify(make_app, apidoc):
|
|||||||
print(app._status.getvalue())
|
print(app._status.getvalue())
|
||||||
print(app._warning.getvalue())
|
print(app._warning.getvalue())
|
||||||
|
|
||||||
@pytest.mark.apidoc(coderoot=(rootdir / 'root' / 'trailing_underscore'))
|
@pytest.mark.apidoc(
|
||||||
|
coderoot=(rootdir / 'roots' / 'test-apidoc-trailing-underscore'))
|
||||||
def test_trailing_underscore(make_app, apidoc):
|
def test_trailing_underscore(make_app, apidoc):
|
||||||
outdir = apidoc.outdir
|
outdir = apidoc.outdir
|
||||||
assert (outdir / 'conf.py').isfile()
|
assert (outdir / 'conf.py').isfile()
|
||||||
|
Loading…
Reference in New Issue
Block a user