summaryrefslogtreecommitdiff
path: root/wasp/boards/simulator
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2021-01-12 22:33:25 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2021-01-12 22:33:25 (GMT)
commitf7ef1654339b05989f0cdfc9ff5ab78ca03300b6 (patch)
treebf9dbc88c29b6267e490ab26df8e367cd9397962 /wasp/boards/simulator
parentaab718f917b908c8c756952ae069e01108312e91 (diff)
simulator: test_qa: Check that apps are includes in the library
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/boards/simulator')
-rw-r--r--wasp/boards/simulator/test_qa.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/wasp/boards/simulator/test_qa.py b/wasp/boards/simulator/test_qa.py
index 206e505..0bde20b 100644
--- a/wasp/boards/simulator/test_qa.py
+++ b/wasp/boards/simulator/test_qa.py
@@ -18,3 +18,18 @@ def test_screenshot_README(constructor):
with open('README.rst') as f:
readme = f.read()
assert fname in readme
+
+def test_apps_documented(constructor):
+ if constructor.NAME in EXCLUDE:
+ return
+
+ with open('docs/apps.rst') as f:
+ appdoc = f.read()
+ with open('docs/wasp.rst') as f:
+ waspdoc = f.read()
+
+ needle = f'.. automodule:: {constructor.__module__}'
+ assert needle in appdoc or needle in waspdoc
+
+ if needle in waspdoc:
+ assert constructor.__name__ in appdoc