summaryrefslogtreecommitdiff
path: root/wasp
diff options
context:
space:
mode:
Diffstat (limited to 'wasp')
-rw-r--r--wasp/boards/simulator/test_qa.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/wasp/boards/simulator/test_qa.py b/wasp/boards/simulator/test_qa.py
new file mode 100644
index 0000000..206e505
--- /dev/null
+++ b/wasp/boards/simulator/test_qa.py
@@ -0,0 +1,20 @@
+import pytest
+import wasp
+import os
+
+EXCLUDE = ('Notifications', 'Template', 'Demo')
+
+def test_screenshot(constructor):
+ if constructor.NAME in EXCLUDE:
+ return
+ fname = f'res/{constructor.NAME}App.png'.replace(' ', '')
+ assert os.path.exists(fname)
+
+def test_screenshot_README(constructor):
+ if constructor.NAME in EXCLUDE:
+ return
+ fname = f'res/{constructor.NAME}App.png'.replace(' ', '')
+
+ with open('README.rst') as f:
+ readme = f.read()
+ assert fname in readme