We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f4d940 commit 95f10baCopy full SHA for 95f10ba
tests/internal/test_paths_for_docs.py
@@ -6,6 +6,7 @@
6
7
ROOT = Path(subprocess.getoutput("git rev-parse --show-toplevel")) # noqa: S605
8
PATHS_FOR_DOCS = ROOT / ".internal" / "paths_for_docs.yaml"
9
+DOCS_DIRECTORIES = ROOT / ".internal" / "docs_directories.txt"
10
11
"""
12
This test checks if all paths in the files_to_copy_for_docs.yaml file exist.
@@ -26,3 +27,8 @@ def test_paths_to_copy_for_docs():
26
27
missing_paths.append(path)
28
29
assert not missing_paths, f"The following paths do not exist: {missing_paths}"
30
+
31
32
+def test_docs_directories():
33
+ dir_list = DOCS_DIRECTORIES.read_text().splitlines()
34
+ assert all((ROOT / path).exists() for path in dir_list), f"Make sure all directories in {DOCS_DIRECTORIES} actually exist"
0 commit comments