mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
[tests] add missing `@pytest.mark.sphinx
` markers (#12125)
This commit is contained in:
parent
6ac2210109
commit
ff252861a7
@ -169,6 +169,7 @@ def test_undocumented_uninitialized_attributes(app):
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.sphinx('html', testroot='ext-autodoc')
|
||||
def test_decorators(app):
|
||||
actual = do_autodoc(app, 'class', 'target.decorator.Baz')
|
||||
assert list(actual) == [
|
||||
@ -373,6 +374,7 @@ def test_class_doc_from_both(app):
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.sphinx('html', testroot='ext-autodoc')
|
||||
def test_class_alias(app):
|
||||
def autodoc_process_docstring(*args):
|
||||
"""A handler always raises an error.
|
||||
@ -391,6 +393,7 @@ def test_class_alias(app):
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.sphinx('html', testroot='ext-autodoc')
|
||||
def test_class_alias_having_doccomment(app):
|
||||
actual = do_autodoc(app, 'class', 'target.classes.OtherAlias')
|
||||
assert list(actual) == [
|
||||
@ -403,6 +406,7 @@ def test_class_alias_having_doccomment(app):
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.sphinx('html', testroot='ext-autodoc')
|
||||
def test_class_alias_for_imported_object_having_doccomment(app):
|
||||
actual = do_autodoc(app, 'class', 'target.classes.IntAlias')
|
||||
assert list(actual) == [
|
||||
|
Loading…
Reference in New Issue
Block a user