summaryrefslogtreecommitdiff
path: root/wasp/boards/simulator/test_qa.py
diff options
context:
space:
mode:
authorFrancesco Gazzetta <fgaz@fgaz.me>2021-10-03 17:21:52 (GMT)
committerDaniel Thompson <daniel.thompson@linaro.org>2021-11-17 15:29:08 (GMT)
commitb5f4099fa6f2eb43de847aed673d0d9a29ef726f (patch)
tree55555807bf1bf1efa2c0964f56a5a449186a172c /wasp/boards/simulator/test_qa.py
parent0eabf0f109c2277c527c334b2b84eec2afec310b (diff)
Test and build docs for user defined apps too
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
Diffstat (limited to 'wasp/boards/simulator/test_qa.py')
-rw-r--r--wasp/boards/simulator/test_qa.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/wasp/boards/simulator/test_qa.py b/wasp/boards/simulator/test_qa.py
index 04dab15..f15b853 100644
--- a/wasp/boards/simulator/test_qa.py
+++ b/wasp/boards/simulator/test_qa.py
@@ -3,7 +3,7 @@ import wasp
import importlib
import os
-EXCLUDE = ('Notifications', 'Template', 'Faces')
+EXCLUDE = ('Notifications', 'Template', 'Faces', 'ReadMe')
def test_README(constructor):
if constructor.NAME in EXCLUDE:
@@ -29,8 +29,9 @@ def test_app_library(constructor):
waspdoc = f.read()
# Every application must be listed in the Application Library
- needle = f'.. automodule:: {constructor.__module__}'
- assert needle in appdoc
+ needle_system = f'.. automodule:: {constructor.__module__}'
+ needle_user_defined = f'.. automodule:: {constructor.__module__}'.replace('apps.', '')
+ assert needle_system in appdoc or needle_user_defined in appdoc
def test_docstrings(constructor):
if constructor.NAME in EXCLUDE: