jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/509621 )
Change subject: [tests] Remove TestPageAssert from tests_tests.py ......................................................................
[tests] Remove TestPageAssert from tests_tests.py
TestPageAssert is not a real test. It only shows the behavior if two lists are compared.
Bug: T223030 Change-Id: I407e98fed8b1bb54065012f88e2ec286ad44d325 --- M tests/tests_tests.py 1 file changed, 0 insertions(+), 22 deletions(-)
Approvals: D3r1ck01: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/tests_tests.py b/tests/tests_tests.py index 4114a09..9dfc32d 100755 --- a/tests/tests_tests.py +++ b/tests/tests_tests.py @@ -7,10 +7,7 @@ # Distributed under the terms of the MIT license. from __future__ import absolute_import, division, unicode_literals
-import pywikibot - from tests.aspects import unittest, TestCase -from tests.utils import allowed_failure
class HttpServerProblemTestCase(TestCase): @@ -26,25 +23,6 @@ def test_502(self): """Test a HTTP 502 response using http://httpbin.org/status/502.""" self.fail('The test framework should skip this test.') - pass - - -class TestPageAssert(TestCase): - - """Test page assertion methods.""" - - family = 'wikipedia' - code = 'en' - - dry = True - - @allowed_failure - def test_assertPageTitlesEqual(self): - """Test assertPageTitlesEqual shows the second page title and '...'.""" - pages = [pywikibot.Page(self.site, 'Foo'), - pywikibot.Page(self.site, 'Bar'), - pywikibot.Page(self.site, 'Baz')] - self.assertPageTitlesEqual(pages, ['Foo'], self.site)
class TestLengthAssert(TestCase):
pywikibot-commits@lists.wikimedia.org