jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] Fix -summary arguments in protectbot_tests

Change-Id: Ic5bef904d0ea75be04613a29858fe1478a02bedf
---
M tests/protectbot_tests.py
1 file changed, 5 insertions(+), 5 deletions(-)

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 change 1041054. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ic5bef904d0ea75be04613a29858fe1478a02bedf
Gerrit-Change-Number: 1041054
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot