main
Bob Mottram 2020-12-22 21:27:46 +00:00
parent 3ff0866deb
commit fa0bdab523
2 changed files with 5 additions and 4 deletions

View File

@ -1984,7 +1984,7 @@ if args.testdata:
testClientToServer,
testCommentsEnabled,
'img/logo.png', 'image/png',
'Description of image',
'Description of image',
useBlurhash)
createPublicPost(baseDir, nickname, domain, port, httpPrefix,
"man these centralized sites are like the worst!",

View File

@ -276,7 +276,7 @@ def createServerAlice(path: str, domain: str, port: int,
if hasPosts:
testFollowersOnly = False
testSaveToFile = True
clientToServer = False
clientToServer = False
testCommentsEnabled = True
testAttachImageFilename = None
testMediaType = None
@ -375,7 +375,8 @@ def createServerBob(path: str, domain: str, port: int,
testSaveToFile = True
testCommentsEnabled = True
testAttachImageFilename = None
testMediaType = None
testImageDescription = None
testMediaType = None
createPublicPost(path, nickname, domain, port, httpPrefix,
"It's your life, live it your way.",
testFollowersOnly,
@ -2589,7 +2590,7 @@ def testReplyToPublicPost() -> None:
def getFunctionCallArgs(name: str, lines: [], startLineCtr: int) -> []:
"""Returns the arguments of a function call given lines
of source code and a starting line number
"""
"""
argsStr = lines[startLineCtr].split(name + '(')[1]
if ')' in argsStr:
argsStr = argsStr.split(')')[0].replace(' ', '').split(',')