Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/854060
)
Change subject: [coverage] Ignore UI status from coverage
......................................................................
[coverage] Ignore UI status from coverage
Change-Id: I7506e631f57e900364b27a89470b3f2c2bd7fa93
---
M pywikibot/data/api/_login.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Verified; Looks good to me, approved
diff --git a/pywikibot/data/api/_login.py b/pywikibot/data/api/_login.py
index b78dc53..09a318d 100644
--- a/pywikibot/data/api/_login.py
+++ b/pywikibot/data/api/_login.py
@@ -130,7 +130,7 @@
self.keyword('token')] = self.site.tokens['login']
continue
- if status == 'UI':
+ if status == 'UI': # pragma: no cover
oathtoken = pywikibot.input(response['message'], password=True)
login_request['OATHToken'] = oathtoken
login_request['logincontinue'] = True
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/854060
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I7506e631f57e900364b27a89470b3f2c2bd7fa93
Gerrit-Change-Number: 854060
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-MessageType: merged