Sphinx test fixtures for pytest
Unknown Field: copyright | |
Copyright 2007-2022 by the Sphinx team, see AUTHORS. | |
Unknown Field: license | |
BSD, see LICENSE for details. |
Constant | DEFAULT_ENABLED_MARKERS |
Undocumented |
Class | SharedResult |
Undocumented |
Function | _shared_result_cache |
Undocumented |
Function | app |
Provides the 'sphinx.application.Sphinx' object |
Function | app_params |
Parameters that are specified by 'pytest.mark.sphinx' for sphinx.application.Sphinx initialization |
Function | if_graphviz_found |
The test will be skipped when using 'if_graphviz_found' fixture and graphviz dot command is not found. |
Function | make_app |
Provides make_app function to initialize SphinxTestApp instance. if you want to initialize 'app' in your test function. please use this instead of using SphinxTestApp class directory. |
Function | pytest_configure |
Register custom markers |
Function | rollback_sysmodules |
Rollback sys.modules to its value before testing to unload modules during tests. |
Function | rootdir |
Undocumented |
Function | shared_result |
Undocumented |
Function | sphinx_test_tempdir |
Temporary directory wrapped with path class. |
Function | status |
Back-compatibility for testing with previous @with_app decorator |
Function | tempdir |
Temporary directory wrapped with path class. This fixture is for back-compatibility with old test implementation. |
Function | test_params |
Test parameters that are specified by 'pytest.mark.test_params' |
Function | warning |
Back-compatibility for testing with previous @with_app decorator |
list[ str]
=
Undocumented
Value |
|
Parameters | |
test_params:Dict | Undocumented |
app_params:Tuple[ | Undocumented |
make_app:Callable | Undocumented |
shared_result:SharedResult | Undocumented |
Returns | |
Generator[ | Undocumented |
Parameters | |
request:Any | Undocumented |
test_params:Dict | Undocumented |
shared_result:SharedResult | Undocumented |
sphinx_test_tempdir:str | Undocumented |
rootdir:str | Undocumented |
Returns | |
Tuple[ | Undocumented |
Parameters | |
app:SphinxTestApp | Undocumented |
Parameters | |
test_params:Dict | Undocumented |
monkeypatch:Any | Undocumented |
Returns | |
Generator[ | Undocumented |
Rollback sys.modules to its value before testing to unload modules during tests.
For example, used in test_ext_autosummary.py to permit unloading the target module to clear its cache.
Parameters | |
app:SphinxTestApp | Undocumented |
Returns | |
StringIO | Undocumented |
Parameters | |
request:Any | Undocumented |
Union[str] shared_result | If the value is provided, app._status and app._warning objects will be shared in the parametrized test functions and/or test functions that have same 'shared_result' value. NOTE: You can not specify both shared_result and srcdir. |
Returns | |
Dict | Undocumented |
Parameters | |
app:SphinxTestApp | Undocumented |
Returns | |
StringIO | Undocumented |