Onionr/src/runtests/uicheck.py
Kevin Froman 8a3f84097a + now require runtime tests to generate unittest result that is somewhat fresh
+ add runtime test for webpass needing to be set
2020-01-29 22:56:47 -06:00

10 lines
366 B
Python

from onionrutils import localcommand
def check_ui(test_manager):
endpoints = ['/', '/mail/', '/friends/', '/board/']
for point in endpoints:
result = localcommand.local_command(point)
if not result: raise ValueError
result = result.lower()
if 'script' not in result:
raise ValueError(f'uicheck failed on {point}')