Browse Source

do things more gracefully

PYADPT-55
Volker Birk 6 years ago
parent
commit
3bca71ea94
  1. 4
      test/sync_handshake.py
  2. 1
      test/sync_test.py

4
test/sync_handshake.py

@ -32,17 +32,21 @@ def run(name):
pEp.messageToSend = messageToSend
ui = UserInterface()
try:
while True:
l = minimail.recv_all(inbox, name)
for m in l:
msg = pEp.Message(m)
msg.decrypt()
except KeyboardInterrupt:
pass
if __name__=="__main__":
from optparse import OptionParser
optParser = OptionParser()
optParser.description = "do not run this manually"
optParser.add_option("-e", "--exec-for", action="store", type="string",
dest="exec_for", help="execute for name")
options, args = optParser.parse_args()

1
test/sync_test.py

@ -62,6 +62,7 @@ if __name__ == "__main__":
from optparse import OptionParser
optParser = OptionParser()
optParser.description = "test runner for sync tests"
optParser.add_option("-c", "--clean", action="store_true", dest="clean",
help="remove all generated files")
options, args = optParser.parse_args()

Loading…
Cancel
Save