You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Volker Birk dcbbbca020 random timing for minimail 3 years ago
.. added imap module for sync_test and sync_handshake PYADPT-47 3 years ago we have sweet texts now instead of numbers 3 years ago PYADPT-54: Add codec for distribution protocol (keyreset) / adding test/ 3 years ago clean code 3 years ago random timing for minimail 3 years ago random timing for minimail 3 years ago random timing for minimail 3 years ago

= Tests in this directory =

$ HOME=$PWD python3 -v do some basic tests of p≡p

CAVEAT: set environment variable HOME to a test directory before executing
this test

$ python3 start two processes representing two devices and do a sync test

Once started is creating a trace of all sent messages in TestInbox. There's a file named Laptop or Phone, respectively, which is working as a marker; the modification timestamp of this file is showing the mails being considered as “already received”. If you delete the file and start i.e.

$ cd Phone $ rm ../TestInbox/Phone $ HOME=$PWD lldb python3 -- ../ -e Phone

Then this side is doing a replay in the debugger. Using touch to set a different timestamp on the marker will only partly replay.

In order to work with IMAP you need to create a file with the following variables:

IMAP_HOST = '' IMAP_PORT = '993' IMAP_USER = 'your_username' IMAP_PWD = 'password' IMAP_EMAIL = ''

= Hint =

installing termcolor and lxml will beautify the output