-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
import tests added for docs_src and examples
- Loading branch information
1 parent
3d1f64e
commit 7393ab1
Showing
17 changed files
with
155 additions
and
45 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
11 changes: 11 additions & 0 deletions
11
docs/docs/en/api/fastagency/base/check_register_decorator.md
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,11 @@ | ||
--- | ||
# 0.5 - API | ||
# 2 - Release | ||
# 3 - Contributing | ||
# 5 - Template Page | ||
# 10 - Default | ||
search: | ||
boost: 0.5 | ||
--- | ||
|
||
::: fastagency.base.check_register_decorator |
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
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
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
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
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
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
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
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
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
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
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,27 @@ | ||
import importlib | ||
from pathlib import Path | ||
|
||
import pytest | ||
|
||
from ..helpers import add_to_sys_path, list_submodules | ||
|
||
root_path = (Path(__file__).parents[2] / "docs").resolve() | ||
module_name = "docs_src" | ||
|
||
|
||
def test_list_submodules() -> None: | ||
# Specify the name of the module you want to inspect | ||
|
||
# Get the list of submodules for the specified module | ||
submodules = list_submodules(module_name, include_path=root_path) | ||
|
||
assert len(submodules) > 0 | ||
assert "docs_src" in submodules | ||
assert "docs_src.getting_started" in submodules | ||
assert "docs_src.getting_started.main_console" in submodules | ||
|
||
|
||
@pytest.mark.parametrize("module", list_submodules(module_name, include_path=root_path)) | ||
def test_submodules(module: str) -> None: | ||
with add_to_sys_path(root_path): | ||
importlib.import_module(module) |
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,27 @@ | ||
import importlib | ||
from pathlib import Path | ||
|
||
import pytest | ||
|
||
from ..helpers import add_to_sys_path, list_submodules | ||
|
||
root_path = (Path(__file__).parents[2]).resolve() | ||
module_name = "examples" | ||
|
||
|
||
def test_list_submodules() -> None: | ||
# Specify the name of the module you want to inspect | ||
|
||
# Get the list of submodules for the specified module | ||
submodules = list_submodules(module_name, include_path=root_path) | ||
|
||
assert len(submodules) > 0 | ||
assert "examples" in submodules | ||
assert "examples.cli" in submodules | ||
assert "examples.cli.main_console" in submodules | ||
|
||
|
||
@pytest.mark.parametrize("module", list_submodules(module_name, include_path=root_path)) | ||
def test_submodules(module: str) -> None: | ||
with add_to_sys_path(root_path): | ||
importlib.import_module(module) |
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
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
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