MCPcopy Create free account
hub / github.com/chatmail/core / start_configure

Method start_configure

python/src/deltachat/testplugin.py:298–309  ·  view source on GitHub ↗

add an account and start its configure process.

(self, account)

Source from the content-addressed store, hash-verified

296 self.log("added already configured account", account, account.get_config("addr"))
297
298 def start_configure(self, account):
299 """add an account and start its configure process."""
300
301 class PendingTracker:
302 @account_hookimpl
303 def ac_configure_completed(this, success: bool, comment: Optional[str]) -> None:
304 self._configured_events.put((account, success, comment))
305
306 account.add_account_plugin(PendingTracker(), name="pending_tracker")
307 self._account2state[account] = self.CONFIGURING
308 account.configure()
309 self.log("started configure on", account)
310
311 def wait_one_configured(self, account):
312 """wait until this account has successfully configured."""

Calls 4

logMethod · 0.95
PendingTrackerClass · 0.85
add_account_pluginMethod · 0.80
configureMethod · 0.45

Tested by

no test coverage detected