add an account and start its configure process.
(self, account)
| 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.""" |
no test coverage detected