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,9 +1403,17 @@ def testClientToServer():
'/followers.txt').read():
if os.path.isfile(bobDir + '/accounts/bob@' + bobDomain +
'/following.txt'):
if 'alice@' + aliceDomain + ':' + str(alicePort) in \
aliceHandleStr = \
'alice@' + aliceDomain + ':' + str(alicePort)
if aliceHandleStr in \
open(bobDir + '/accounts/bob@' + bobDomain +
'/following.txt').read():
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)