jenkins-bot has submitted this change and it was merged.
Change subject: Fix mock Site classes ......................................................................
Fix mock Site classes
I5e480be86a0b7b6a5907cf71690ba9ebed0b04b6 depended on Site having _loginstatus, which was not added to the mock Site subclasses in the test suite.
Change-Id: I94df9e30b328bfab6892954ba8d6c443efa33d49 --- M tests/dry_api_tests.py M tests/dry_site_tests.py 2 files changed, 4 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/dry_api_tests.py b/tests/dry_api_tests.py index 7d30ccc..95870ff 100644 --- a/tests/dry_api_tests.py +++ b/tests/dry_api_tests.py @@ -48,6 +48,8 @@ # Mock basesite object to test this. class MockSite(pywikibot.site.APISite):
+ _loginstatus = pywikibot.site.LoginStatus.NOT_ATTEMPTED + _namespaces = {2: 'User'}
def __init__(self): diff --git a/tests/dry_site_tests.py b/tests/dry_site_tests.py index 042b14e..19f95a0 100644 --- a/tests/dry_site_tests.py +++ b/tests/dry_site_tests.py @@ -14,6 +14,8 @@
class DrySite(pywikibot.site.APISite): + _loginstatus = pywikibot.site.LoginStatus.NOT_ATTEMPTED + @property def userinfo(self): return self._userinfo
pywikibot-commits@lists.wikimedia.org