+ now require runtime tests to generate unittest result that is somewhat fresh

+ add runtime test for webpass needing to be set
This commit is contained in:
Kevin Froman 2020-01-29 22:56:47 -06:00
parent 6624a80c68
commit 8a3f84097a
12 changed files with 115 additions and 17 deletions

View file

@ -66,6 +66,8 @@ def local_command(command, data='', silent = True, post=False,
if data != '':
data = '&data=' + urllib.parse.quote_plus(data)
payload = 'http://%s/%s%s' % (hostname, command, data)
if not config.get('client.webpassword'):
config.reload()
try:
if post:
@ -89,5 +91,4 @@ def local_command(command, data='', silent = True, post=False,
if not silent:
logger.error('Failed to make local request (command: %s):%s' % (command, error), terminal=True)
ret_data = False
return ret_data