Skip to content

Commit

Permalink
add another function so we can skip and include in a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed Dec 28, 2021
1 parent 57a8360 commit f75b44d
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 2 deletions.
Expand Up @@ -6,3 +6,4 @@
add
subtract
multiply
divide
Expand Up @@ -6,3 +6,4 @@
add
subtract
multiply
divide
Expand Up @@ -6,3 +6,4 @@
add
subtract
multiply
divide
Expand Up @@ -6,3 +6,4 @@
add
subtract
multiply
divide
Expand Up @@ -4,6 +4,7 @@
:toctree: api

add
divide
multiply
subtract
.. currentmodule:: sphinx_automodapi.tests.example_module
Expand Down
Expand Up @@ -4,6 +4,7 @@
:toctree: api

add
divide
multiply
subtract
.. currentmodule:: sphinx_automodapi.tests.example_module
Expand Down
Expand Up @@ -4,6 +4,7 @@
:toctree: api

add
divide
multiply
subtract
.. currentmodule:: sphinx_automodapi.tests.example_module
Expand Down
Expand Up @@ -6,3 +6,4 @@
add
subtract
multiply
divide
Expand Up @@ -6,3 +6,4 @@
add
subtract
multiply
divide
9 changes: 8 additions & 1 deletion sphinx_automodapi/tests/example_module/functions.py
Expand Up @@ -2,7 +2,7 @@
A collection of useful functions
"""

__all__ = ['add', 'subtract', 'multiply']
__all__ = ['add', 'subtract', 'multiply', 'divide']


def add(a, b):
Expand All @@ -24,3 +24,10 @@ def multiply(c, d):
Multiply two numbers
"""
return c * d


def divide(c, d):
"""
Divide two numbers
"""
return c / d
3 changes: 2 additions & 1 deletion sphinx_automodapi/tests/test_automodapi.py
Expand Up @@ -384,6 +384,7 @@ def test_am_replacer_skip_stdlib(tmpdir):
.. automodapi:: sphinx_automodapi.tests.example_module.functions
:include: add
:include: subtract
:skip: divide
This comes after
"""
Expand All @@ -403,7 +404,7 @@ def test_am_replacer_skip_stdlib(tmpdir):
.. automodsumm:: sphinx_automodapi.tests.example_module.functions
:functions-only:
:toctree: api
:skip: multiply
:skip: divide,multiply
This comes after
Expand Down

0 comments on commit f75b44d

Please sign in to comment.