jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/877242 )
Change subject: mwparserfromhell is now required
......................................................................
mwparserfromhell is now required
Follow-up: Iaa95ea13b82fa106a5c34b03e82ff432c6b8f029
Change-Id: Ifd0f0f67af5ce6e4aa1c904a507a81387a7111d3
---
M tests/script_tests.py
M tests/textlib_tests.py
M tests/patrolbot_tests.py
3 files changed, 12 insertions(+), 7 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/patrolbot_tests.py b/tests/patrolbot_tests.py
index aed5d9b..50b8c11 100755
--- a/tests/patrolbot_tests.py
+++ b/tests/patrolbot_tests.py
@@ -8,7 +8,7 @@
from contextlib import suppress
from scripts.patrol import PatrolBot
-from tests.aspects import DefaultDrySiteTestCase, require_modules, unittest
+from tests.aspects import DefaultDrySiteTestCase, unittest
DUMMY_PAGE_TUPLES = """
@@ -27,7 +27,6 @@
"""
-@require_modules('mwparserfromhell')
class TestPatrolBot(DefaultDrySiteTestCase):
"""Test the PatrolBot class."""
diff --git a/tests/script_tests.py b/tests/script_tests.py
index ac0b54a..60d275a 100755
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -27,8 +27,6 @@
# Here, the name given to the module which will be imported is required.
script_deps = {
'create_isbn_edition': ['isbnlib', 'unidecode'],
- 'commons_information': ['mwparserfromhell'],
- 'patrol': ['mwparserfromhell'],
'weblinkchecker': ['memento_client'],
}
diff --git a/tests/textlib_tests.py b/tests/textlib_tests.py
index 310a924..4f3daf1 100755
--- a/tests/textlib_tests.py
+++ b/tests/textlib_tests.py
@@ -484,7 +484,6 @@
self.assertEqual(func(template),
[(name, OrderedDict((('b', 'c'), )))])
- @require_modules('mwparserfromhell')
def test_extract_templates_params_mwpfh(self):
"""Test using mwparserfromhell."""
func = textlib.extract_templates_and_params
@@ -506,7 +505,6 @@
('d', OrderedDict([('1', '')]))
])
- @require_modules('mwparserfromhell')
def test_extract_templates_params_parser_stripped(self):
"""Test using mwparserfromhell with stripping."""
func = functools.partial(textlib.extract_templates_and_params,
@@ -538,7 +536,6 @@
('d', OrderedDict([('1', '')]))
])
- @require_modules('mwparserfromhell')
def test_extract_templates_params(self):
"""Test that the normal entry point works."""
func = functools.partial(textlib.extract_templates_and_params,
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/877242
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ifd0f0f67af5ce6e4aa1c904a507a81387a7111d3
Gerrit-Change-Number: 877242
Gerrit-PatchSet: 3
Gerrit-Owner: JJMC89 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]