jenkins-bot merged this change.

View Change

Approvals: D3r1ck01: Looks good to me, approved jenkins-bot: Verified
[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(-)

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):

To view, visit change 509621. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I407e98fed8b1bb54065012f88e2ec286ad44d325
Gerrit-Change-Number: 509621
Gerrit-PatchSet: 4
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki@aol.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)