-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add compose_chart_export doctests
- Loading branch information
1 parent
b43e1e7
commit 0a95dce
Showing
2 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
compose_chart_export/tests/test_chart_export/test_doctests.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import pytest | ||
import xdoctest as xdoc # type: ignore | ||
|
||
from compose_chart_export import ( | ||
chart_combiner, | ||
chart_file_templates, | ||
chart_mods, | ||
chart_read, | ||
compose_export, | ||
ports, | ||
settings, | ||
) | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"module", | ||
[ | ||
chart_combiner, | ||
chart_mods, | ||
chart_read, | ||
ports, | ||
chart_file_templates, | ||
compose_export, | ||
settings, | ||
], | ||
) | ||
def test_chart_export_doctests(module): | ||
return_code = xdoc.doctest_module(module.__file__, command="all", verbose=1) | ||
assert not return_code["failed"] |