jenkins-bot has submitted this change and it was merged.

Change subject: Make MockSite.login return True ('login successful')
......................................................................


Make MockSite.login return True ('login successful')

Otherwise the must_be decorator thinks the login failed, and
raises an Exception.

Fix-For-Change-Id: Ic7196732b0841a5c3a956fa0c7a2b558eba16371
Change-Id: Id34be756f50565a0279e040f00ac5956668f8b31
---
M tests/dry_site_tests.py
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/dry_site_tests.py b/tests/dry_site_tests.py
index f5b7af4..affb8a9 100644
--- a/tests/dry_site_tests.py
+++ b/tests/dry_site_tests.py
@@ -34,6 +34,7 @@
 
     def login(self, as_sysop):
         self.last_login = 'sysop' if as_sysop else 'user'
+        return True
 
     def inner_fn(self, *args, **kwargs):
         self.last_fn_called = (args, kwargs)

-- 
To view, visit https://gerrit.wikimedia.org/r/79758
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id34be756f50565a0279e040f00ac5956668f8b31
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to