Fix tests

main
Bob Mottram 2021-03-25 15:11:52 +00:00
parent 40655f8b19
commit c3f435f30f
1 changed files with 12 additions and 5 deletions

View File

@ -59,9 +59,10 @@ from person import getActorJson
def _desktopHelp() -> None: def _desktopHelp() -> None:
"""Shows help """Shows help
""" """
_desktopClearScreen()
indent = ' ' indent = ' '
print('') print('')
print(indent + 'Commands:') print(indent + _highlightText('Help Commands:'))
print('') print('')
print(indent + 'quit ' + print(indent + 'quit ' +
'Exit from the desktop client') 'Exit from the desktop client')
@ -1571,7 +1572,8 @@ def runDesktopClient(baseDir: str, proxyType: str, httpPrefix: str,
espeak, translate, yourActor) espeak, translate, yourActor)
print('') print('')
sayStr = 'Press Enter to continue...' sayStr = 'Press Enter to continue...'
_sayCommand(_highlightText(sayStr), sayStr, sayStr2 = _highlightText(sayStr)
_sayCommand(sayStr2, sayStr,
screenreader, systemLanguage, espeak) screenreader, systemLanguage, espeak)
input() input()
prevTimelineFirstId = '' prevTimelineFirstId = ''
@ -1606,7 +1608,8 @@ def runDesktopClient(baseDir: str, proxyType: str, httpPrefix: str,
espeak, translate, yourActor, espeak, translate, yourActor,
None) None)
sayStr = 'Press Enter to continue...' sayStr = 'Press Enter to continue...'
_sayCommand(_highlightText(sayStr), sayStr, sayStr2 = _highlightText(sayStr)
_sayCommand(sayStr2, sayStr,
screenreader, systemLanguage, espeak) screenreader, systemLanguage, espeak)
input() input()
prevTimelineFirstId = '' prevTimelineFirstId = ''
@ -1623,7 +1626,8 @@ def runDesktopClient(baseDir: str, proxyType: str, httpPrefix: str,
espeak, translate, yourActor, espeak, translate, yourActor,
None) None)
sayStr = 'Press Enter to continue...' sayStr = 'Press Enter to continue...'
_sayCommand(_highlightText(sayStr), sayStr, sayStr2 = _highlightText(sayStr)
_sayCommand(sayStr2, sayStr,
screenreader, systemLanguage, espeak) screenreader, systemLanguage, espeak)
input() input()
prevTimelineFirstId = '' prevTimelineFirstId = ''
@ -2317,9 +2321,12 @@ def runDesktopClient(baseDir: str, proxyType: str, httpPrefix: str,
elif commandStr.startswith('h'): elif commandStr.startswith('h'):
_desktopHelp() _desktopHelp()
sayStr = 'Press Enter to continue...' sayStr = 'Press Enter to continue...'
_sayCommand(_highlightText(sayStr), sayStr, sayStr2 = _highlightText(sayStr)
_sayCommand(sayStr2, sayStr,
screenreader, systemLanguage, espeak) screenreader, systemLanguage, espeak)
input() input()
prevTimelineFirstId = ''
refreshTimeline = True
elif (commandStr == 'delete' or elif (commandStr == 'delete' or
commandStr == 'rm' or commandStr == 'rm' or
commandStr.startswith('delete ') or commandStr.startswith('delete ') or