jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1041054?usp=email )
Change subject: [bugfix] Fix -summary arguments in protectbot_tests
......................................................................
[bugfix] Fix -summary arguments in protectbot_tests
Change-Id: Ic5bef904d0ea75be04613a29858fe1478a02bedf
---
M tests/protectbot_tests.py
1 file changed, 5 insertions(+), 5 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/protectbot_tests.py b/tests/protectbot_tests.py
index 4688512..ebf16ca 100755
--- a/tests/protectbot_tests.py
+++ b/tests/protectbot_tests.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""Tests for scripts/protect.py."""
#
-# (C) Pywikibot team, 2014-2022
+# (C) Pywikibot team, 2014-2024
#
# Distributed under the terms of the MIT license.
#
@@ -28,12 +28,12 @@
def test_protect(self):
"""Test ProtectionBot protect/unprotect on the test wiki."""
site = self.get_site()
- protect.main('-page:User:Sn1per/ProtectTest1', '-always',
- '-unprotect', '-summary=Pywikibot protect.py unit tests')
+ protect.main('-page:User:Sn1per/ProtectTest1', '-always', '-unprotect',
+ '-summary:Pywikibot protect.py unit tests')
page = pywikibot.Page(site, 'User:Sn1per/ProtectTest1')
self.assertIsEmpty(list(page.protection()))
- protect.main('-page:User:Sn1per/ProtectTest1', '-always',
- '-default', '-summary=Pywikibot protect.py unit tests')
+ protect.main('-page:User:Sn1per/ProtectTest1', '-always', '-default',
+ '-summary:Pywikibot protect.py unit tests')
page = pywikibot.Page(site, 'User:Sn1per/ProtectTest1')
self.assertLength(list(page.protection()), 2)
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1041054?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: Ic5bef904d0ea75be04613a29858fe1478a02bedf
Gerrit-Change-Number: 1041054
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[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]