fix ui test
parent
f14239db6c
commit
24d682860f
|
@ -37,6 +37,6 @@ class OnionrRunTestManager:
|
||||||
last = i
|
last = i
|
||||||
i(self)
|
i(self)
|
||||||
logger.info(last.__name__ + " passed")
|
logger.info(last.__name__ + " passed")
|
||||||
except AssertionError:
|
except ValueError:
|
||||||
logger.error(last.__name__ + ' failed')
|
logger.error(last.__name__ + ' failed')
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
from onionrutils import localcommand
|
from onionrutils import localcommand
|
||||||
def check_ui(test_manager):
|
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
|
Loading…
Reference in New Issue