jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/375623 )
Change subject: [tests] split wikibase isbn tests and expect failure for the second ......................................................................
[tests] split wikibase isbn tests and expect failure for the second
Bug: T174870 Change-Id: I46b87792890aa4167aba780043cc2e7371c608c6 --- M tests/isbn_tests.py 1 file changed, 7 insertions(+), 3 deletions(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/isbn_tests.py b/tests/isbn_tests.py index 5d80170..df00417 100644 --- a/tests/isbn_tests.py +++ b/tests/isbn_tests.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Tests for isbn script.""" # -# (C) Pywikibot team, 2014-2016 +# (C) Pywikibot team, 2014-2017 # # Distributed under the terms of the MIT license. # @@ -238,10 +238,14 @@ ItemPage.editEntity = TestIsbnWikibaseBot._original_editEntity super(TestIsbnWikibaseBot, self).tearDown()
- def test_isbn(self): - """Test using the bot and wikibase.""" + def test_isbn_format(self): + """Test format using the bot and wikibase.""" main('-page:' + self.test_page_qid, '-always', '-format') self.assertEqual(self.setTarget_value, '0-9752298-0-X') + + @unittest.expectedFailure # See T174870 + def test_isbn_to13(self): + """Test to13 using the bot and wikibase.""" main('-page:' + self.test_page_qid, '-always', '-to13') self.assertTrue(self.setTarget_value, '978-0975229804')
pywikibot-commits@lists.wikimedia.org