Skip to content

Commit

Permalink
[tests] add missing @pytest.mark.sphinx markers (#12125)
Browse files Browse the repository at this point in the history
  • Loading branch information
picnixz committed Mar 18, 2024
1 parent 6ac2210 commit ff25286
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_extensions/test_ext_autodoc_autoclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) == [
Expand Down Expand Up @@ -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.
Expand All @@ -391,6 +393,7 @@ def autodoc_process_docstring(*args):
]


@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) == [
Expand All @@ -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) == [
Expand Down

0 comments on commit ff25286

Please sign in to comment.