File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
"""Tests for documentation build."""
2
2
3
- import os
3
+ import sys
4
4
5
+ import pytest
5
6
7
+ try :
8
+ import mkdocs
9
+ except ImportError :
10
+ ...
11
+
12
+
13
+ @pytest .mark .skipif (
14
+ "mkdocs" not in sys .modules ,
15
+ reason = (
16
+ "Requires the MkDocs library. "
17
+ "And only test documentation in documentation building CI."
18
+ ),
19
+ )
6
20
def test_docs_general_functions_present ():
7
21
"""Test that all docs pages build correctly.
8
22
9
23
TODO: There has to be a better way to automatically check that
10
24
all of the functions are present in the docs.
11
25
This is an awesome thing that we could use help with in the future.
12
26
"""
13
- # Build docs using mkdocs
14
- os .system ("mkdocs build --clean" )
15
27
16
28
# We want to check that the following keywords are all present.
17
29
# I put in a subsample of general functions.
You can’t perform that action at this time.
0 commit comments