jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/362930 )
Change subject: [bugfix] re-enable tests for TestInterwikidataBot.test_without_repo ......................................................................
[bugfix] re-enable tests for TestInterwikidataBot.test_without_repo
Phase 1 of Wiktionary has launched in wikidata since 20th June. Now Wiktionary pages can be linked with every item for all the Wiktionaries namespaces (except main, citations, user and talk)
Use wikitech for the tests instead.
Bug: T169480 Change-Id: Idc7b2b6b9ff8a3c181550c6d580c4d4bdd3f2a3f --- M tests/interwikidata_tests.py 1 file changed, 6 insertions(+), 6 deletions(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/interwikidata_tests.py b/tests/interwikidata_tests.py index d5618db..f7e0932 100644 --- a/tests/interwikidata_tests.py +++ b/tests/interwikidata_tests.py @@ -47,7 +47,7 @@ 'code': 'fa', }, 'wt': { - 'family': 'wiktionary', + 'family': 'wikitech', 'code': 'en', }, } @@ -89,16 +89,16 @@ def test_without_repo(self): """Test throwing error when site does not have a data repo.""" wt_page = pywikibot.Page(self.wt, 'User:Ladsgroup') - self.assertRaises(ValueError, DummyBot, generator=[wt_page], site=self.wt) + self.assertRaises(ValueError, DummyBot, generator=[wt_page], + site=self.wt)
- fa_wiktionary = pywikibot.Site('fa', 'wiktionary') self.assertRaisesRegex( ValueError, - r'wiktionary:fa does not have a data repository, ' + r'wikitech:en does not have a data repository, ' r'use interwiki.py instead.', interwikidata.IWBot, - generator=[pywikibot.Page(fa_wiktionary, 'User:Dalba')], - site=fa_wiktionary, + generator=[pywikibot.Page(self.wt, 'User:Dalba')], + site=self.wt, )
pywikibot-commits@lists.wikimedia.org