jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/701701 )
Change subject: [IMPR] Enable blockpageschecker script tests ......................................................................
[IMPR] Enable blockpageschecker script tests
- Enable blockpageschecker script tests - Update sphinx docs - Update README.rst - Fix rst in doc
Bug: T285620 Change-Id: I271fd0bc663b86944a39924952f1e590d8c74abe --- M docs/scripts/index.rst M docs/scripts/scripts.rst M scripts/README.rst M scripts/blockpageschecker.py M tests/script_tests.py 5 files changed, 7 insertions(+), 9 deletions(-)
Approvals: Matěj Suchánek: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/docs/scripts/index.rst b/docs/scripts/index.rst index bef80d8..b20ebdf 100644 --- a/docs/scripts/index.rst +++ b/docs/scripts/index.rst @@ -16,5 +16,3 @@ :glob:
* - - diff --git a/docs/scripts/scripts.rst b/docs/scripts/scripts.rst index 5c9b8d3..6a9371a 100644 --- a/docs/scripts/scripts.rst +++ b/docs/scripts/scripts.rst @@ -8,7 +8,6 @@
.. toctree::
- scripts.archive scripts.i18n scripts.maintenance @@ -29,8 +28,8 @@
.. automodule:: scripts.basic
-scripts.blockpageschecker script --------------------------------- +blockpageschecker script +------------------------
.. automodule:: scripts.blockpageschecker
diff --git a/scripts/README.rst b/scripts/README.rst index f098621..4485013 100644 --- a/scripts/README.rst +++ b/scripts/README.rst @@ -24,6 +24,9 @@ +------------------------+---------------------------------------------------------+ | basic.py | Is a template from which simple bots can be made. | +------------------------+---------------------------------------------------------+ + | blockpagechecker.py | Deletes any protection templates that are on pages | + | | which aren't actually protected. | + +------------------------+---------------------------------------------------------+ | category.py | Add a category link to all pages mentioned on a page, | | | change or remove category tags. | +------------------------+---------------------------------------------------------+ @@ -155,9 +158,6 @@ | archive | Scripts no longer maintained. | | | Please open a Phabricator task if you want to use one. | +========================+=========================================================+ - | blockpagechecker.py | Deletes any protection templates that are on pages | - | | which aren't actually protected. | - +------------------------+---------------------------------------------------------+ | capitalize_redirects.py| Script to create a redirect of capitalize articles. | +------------------------+---------------------------------------------------------+ | casechecker.py | Script to enumerate all pages in Wikipedia and | diff --git a/scripts/blockpageschecker.py b/scripts/blockpageschecker.py index 890aad7..f95d347 100755 --- a/scripts/blockpageschecker.py +++ b/scripts/blockpageschecker.py @@ -30,7 +30,7 @@ -move The bot will check if the page is blocked also for the move option, not only for edit
-Examples: +Examples::
python pwb.py blockpageschecker -always
diff --git a/tests/script_tests.py b/tests/script_tests.py index 721ffc4..f746518 100644 --- a/tests/script_tests.py +++ b/tests/script_tests.py @@ -74,6 +74,7 @@ }
auto_run_script_list = [ + 'blockpageschecker', 'category_redirect', 'checkimages', 'clean_sandbox',
pywikibot-commits@lists.wikimedia.org