Include calendar file in tests

main
Bob Mottram 2020-07-03 22:56:38 +01:00
parent 281bafcf81
commit 3ec54282dc
1 changed files with 10 additions and 2 deletions

View File

@ -1403,10 +1403,18 @@ def testClientToServer():
'/followers.txt').read(): '/followers.txt').read():
if os.path.isfile(bobDir + '/accounts/bob@' + bobDomain + if os.path.isfile(bobDir + '/accounts/bob@' + bobDomain +
'/following.txt'): '/following.txt'):
if 'alice@' + aliceDomain + ':' + str(alicePort) in \ aliceHandleStr = \
'alice@' + aliceDomain + ':' + str(alicePort)
if aliceHandleStr in \
open(bobDir + '/accounts/bob@' + bobDomain + open(bobDir + '/accounts/bob@' + bobDomain +
'/following.txt').read(): '/following.txt').read():
break if os.path.isfile(bobDir + '/accounts/bob@' +
bobDomain +
'/followingCalendar.txt'):
if aliceHandleStr in \
open(bobDir + '/accounts/bob@' + bobDomain +
'/followingCalendar.txt').read():
break
time.sleep(1) time.sleep(1)
assert os.path.isfile(aliceDir + '/accounts/alice@' + aliceDomain + assert os.path.isfile(aliceDir + '/accounts/alice@' + aliceDomain +