jenkins-bot has submitted this change and it was merged.
Change subject: Fix page namespace tests on default site ......................................................................
Fix page namespace tests on default site
Change-Id: I2ace4f6d2f2e798df0fa77fabc8480bd82260d0c --- M tests/page_tests.py 1 file changed, 5 insertions(+), 3 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/page_tests.py b/tests/page_tests.py index fc472b9..7dc7537 100644 --- a/tests/page_tests.py +++ b/tests/page_tests.py @@ -262,10 +262,12 @@ """Test namespace() method""" mainpage = self.get_mainpage() maintalk = mainpage.toggleTalkPage() - badpage = self.get_missing_article()
- self.assertEqual(mainpage.namespace(), 0) - self.assertEqual(maintalk.namespace(), 1) + if u':' not in mainpage.title(): + self.assertEqual(mainpage.namespace(), 0) + self.assertEqual(maintalk.namespace(), mainpage.namespace() + 1) + + badpage = self.get_missing_article() self.assertEqual(badpage.namespace(), 0)
def testTitle(self):
pywikibot-commits@lists.wikimedia.org