fix ui test

This commit is contained in:
Kevin Froman 2019-09-27 10:42:35 -05:00
parent f14239db6c
commit 24d682860f
2 changed files with 8 additions and 2 deletions

View File

@ -37,6 +37,6 @@ class OnionrRunTestManager:
last = i
i(self)
logger.info(last.__name__ + " passed")
except AssertionError:
except ValueError:
logger.error(last.__name__ + ' failed')

View File

@ -1,3 +1,9 @@
from onionrutils import localcommand
def check_ui(test_manager):
if not 'onionr' in localcommand.local_command('/mail/').lower(): raise AssertionError
endpoints = ['/', '/mail/', '/friends/', '/board/']
for point in endpoints:
result = localcommand.local_command(point)
if not result: raise ValueError
result = result.lower()
if not 'onionr' in result and not 'Onionr' in result:
raise ValueError