Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1326061?usp=email )
Change subject: [bugfix] Change test regex for full qualified link
......................................................................
[bugfix] Change test regex for full qualified link
Bug: T435024
Change-Id: I6bb14d506a3a423001e12e192c6f6b91ea206d2c
---
M tests/flaggedrevs_tests.py
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
jenkins-bot: Verified
Xqt: Verified; Looks good to me, approved
diff --git a/tests/flaggedrevs_tests.py b/tests/flaggedrevs_tests.py
index c69e285..bc1e05e 100644
--- a/tests/flaggedrevs_tests.py
+++ b/tests/flaggedrevs_tests.py
@@ -308,7 +308,8 @@
"""Test exceptions."""
with self.assertRaisesRegex(
ValueError,
- r'Revision 4711 does not belong to \[\[test2:BTP\]\]'
+ 'Revision 4711 does not belong to '
+ fr'\[\[({self.family}:)?{self.code}:BTP\]\]'
):
self.flagged.review(revid=4711)
with self.assertRaisesRegex(ValueError, "Invalid revision id '0815'"):
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1326061?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I6bb14d506a3a423001e12e192c6f6b91ea206d2c
Gerrit-Change-Number: 1326061
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Mahveotm <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]