Mpaa has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/248232

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


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/32/248232/1

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: newchange
Gerrit-Change-Id: I8c477ed8eed6469f81b49cf9f5b6518085283d20
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <[email protected]>

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

Reply via email to