jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[tests] set cached attribute for LinkTestCase

Change-Id: I329c832db64b7acc44a5e8ceb6f563d69340c1e4
---
M tests/link_tests.py
1 file changed, 7 insertions(+), 17 deletions(-)

diff --git a/tests/link_tests.py b/tests/link_tests.py
index f1c132f..601acd5 100644
--- a/tests/link_tests.py
+++ b/tests/link_tests.py
@@ -13,7 +13,7 @@
from pywikibot.exceptions import InvalidTitleError, SiteDefinitionError
from pywikibot.page import Link, Page, SiteLink
from pywikibot.site import Namespace
-from tests.aspects import AlteredDefaultSiteTestCase as LinkTestCase
+from tests.aspects import AlteredDefaultSiteTestCase
from tests.aspects import (
DefaultDrySiteTestCase,
TestCase,
@@ -232,6 +232,12 @@

# ---- The first set of tests are explicit links, starting with a ':'.

+class LinkTestCase(AlteredDefaultSiteTestCase):
+
+ """Cached API test for link tests."""
+
+ cache = True
+

class TestPartiallyQualifiedExplicitLinkSameSiteParser(LinkTestCase):

@@ -239,7 +245,6 @@

family = 'wikipedia'
code = 'en'
- cached = True

def setUp(self):
"""Setup tests."""
@@ -286,7 +291,6 @@

family = 'wikipedia'
code = 'en'
- cached = True

def setUp(self):
"""Setup tests."""
@@ -317,7 +321,6 @@

family = 'wikipedia'
code = 'en'
- cached = True

def setUp(self):
"""Setup tests."""
@@ -348,7 +351,6 @@

family = 'wikipedia'
code = 'en'
- cached = True

def test_namespace_vs_family(self):
"""Test namespace is selected before family."""
@@ -372,7 +374,6 @@

family = 'wikipedia'
code = 'en'
- cached = True

def setUp(self):
"""Setup tests."""
@@ -411,7 +412,6 @@
'code': 'en'
}
}
- cached = True

PATTERN = '{colon}{first}:{second}:{title}'

@@ -472,7 +472,6 @@
'code': 'en'
}
}
- cached = True

def setUp(self):
"""Setup tests."""
@@ -531,7 +530,6 @@
'code': 'test'
},
}
- cached = True

def setUp(self):
"""Setup tests."""
@@ -579,7 +577,6 @@

family = 'species'
code = 'species'
- cached = True

def setUp(self):
"""Setup tests."""
@@ -613,7 +610,6 @@

family = 'wikipedia'
code = 'en'
- cached = True

def setUp(self):
"""Setup tests."""
@@ -660,7 +656,6 @@

family = 'wikipedia'
code = 'en'
- cached = True

def setUp(self):
"""Setup tests."""
@@ -691,7 +686,6 @@

family = 'wikipedia'
code = 'en'
- cached = True

def setUp(self):
"""Setup tests."""
@@ -722,7 +716,6 @@

family = 'wikipedia'
code = 'en'
- cached = True

def setUp(self):
"""Setup tests."""
@@ -761,7 +754,6 @@
'code': 'en'
}
}
- cached = True

def setUp(self):
"""Setup tests."""
@@ -808,7 +800,6 @@

family = 'wikidata'
code = 'test'
- cached = True

def setUp(self):
"""Setup tests."""
@@ -847,7 +838,6 @@

family = 'species'
code = 'species'
- cached = True

def setUp(self):
"""Setup tests."""

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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I329c832db64b7acc44a5e8ceb6f563d69340c1e4
Gerrit-Change-Number: 758888
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged