jenkins-bot has submitted this change and it was merged.

Change subject: tests_textlib.py: add tests for replaceExcept with includeonly
......................................................................


tests_textlib.py: add tests for replaceExcept with includeonly

Bug: T57315
Change-Id: I8c477ed8eed6469f81b49cf9f5b6518085283d20
---
M tests/textlib_tests.py
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  XZise: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/textlib_tests.py b/tests/textlib_tests.py
index f450455..890efb1 100644
--- a/tests/textlib_tests.py
+++ b/tests/textlib_tests.py
@@ -1088,6 +1088,10 @@
                                                'x', 'y', ['source'],
                                                site=self.site),
                          '<syntaxhighlight lang="xml">x</syntaxhighlight>')
+        self.assertEqual(textlib.replaceExcept('<includeonly>x</includeonly>',
+                                               'x', 'y', ['includeonly'],
+                                               site=self.site),
+                         '<includeonly>x</includeonly>')
         self.assertEqual(textlib.replaceExcept('<ref>x</ref>', 'x', 'y',
                                                ['ref'], site=self.site),
                          '<ref>x</ref>')

-- 
To view, visit https://gerrit.wikimedia.org/r/248232
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8c477ed8eed6469f81b49cf9f5b6518085283d20
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: XZise <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to