merge-requests/8/head
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, testClientToServer,
testCommentsEnabled, testCommentsEnabled,
'img/logo.png', 'image/png', 'img/logo.png', 'image/png',
'Description of image', 'Description of image',
useBlurhash) useBlurhash)
createPublicPost(baseDir, nickname, domain, port, httpPrefix, createPublicPost(baseDir, nickname, domain, port, httpPrefix,
"man these centralized sites are like the worst!", "man these centralized sites are like the worst!",

View File

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