mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 13:36:30 +03:00
test: use QR codes to setup contact with test bots
This commit is contained in:
@@ -55,6 +55,8 @@ def run_cmdline(argv=None, account_plugins=None):
|
||||
args = parser.parse_args(argv[1:])
|
||||
|
||||
ac = Account(args.db)
|
||||
qr = ac.get_setup_contact_qr()
|
||||
print(qr)
|
||||
|
||||
ac.run_account(addr=args.email, password=args.password, account_plugins=account_plugins, show_ffi=args.show_ffi)
|
||||
|
||||
|
||||
@@ -649,6 +649,9 @@ class BotProcess:
|
||||
|
||||
def __init__(self, popen, addr) -> None:
|
||||
self.popen = popen
|
||||
|
||||
# The first thing the bot prints to stdout is an invite link.
|
||||
self.qr = self.popen.stdout.readline()
|
||||
self.addr = addr
|
||||
|
||||
# we read stdout as quickly as we can in a thread and make
|
||||
|
||||
Reference in New Issue
Block a user