simulator: test_qa: Update to match latest policy
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
parent
727bc8c685
commit
64d03fcc11
1 changed files with 3 additions and 10 deletions
|
@ -5,7 +5,7 @@ import os
|
||||||
|
|
||||||
EXCLUDE = ('Notifications', 'Template', 'Demo')
|
EXCLUDE = ('Notifications', 'Template', 'Demo')
|
||||||
|
|
||||||
def test_screenshot_README(constructor):
|
def test_README(constructor):
|
||||||
if constructor.NAME in EXCLUDE:
|
if constructor.NAME in EXCLUDE:
|
||||||
return
|
return
|
||||||
fname = f'res/{constructor.NAME}App.png'.replace(' ', '')
|
fname = f'res/{constructor.NAME}App.png'.replace(' ', '')
|
||||||
|
@ -28,16 +28,9 @@ def test_app_library(constructor):
|
||||||
with open('docs/wasp.rst') as f:
|
with open('docs/wasp.rst') as f:
|
||||||
waspdoc = f.read()
|
waspdoc = f.read()
|
||||||
|
|
||||||
# Every application must be listed in either the
|
# Every application must be listed in the Application Library
|
||||||
# Application Library or the Reference manual
|
|
||||||
needle = f'.. automodule:: {constructor.__module__}'
|
needle = f'.. automodule:: {constructor.__module__}'
|
||||||
assert needle in appdoc or needle in waspdoc
|
assert needle in appdoc
|
||||||
|
|
||||||
# If an application is listed in the Reference manual
|
|
||||||
# then we need to make sure there is long to it from the
|
|
||||||
# Application Library
|
|
||||||
if needle in waspdoc:
|
|
||||||
assert constructor.__name__ in appdoc
|
|
||||||
|
|
||||||
def test_docstrings(constructor):
|
def test_docstrings(constructor):
|
||||||
if constructor.NAME in EXCLUDE:
|
if constructor.NAME in EXCLUDE:
|
||||||
|
|
Loading…
Add table
Reference in a new issue