jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910861 )

Change subject: [doc] Add TestPwb comment to TestPwb doc string
......................................................................

[doc] Add TestPwb comment to TestPwb doc string

Also remove outdated link

Change-Id: If9041c99f0603a5785a683223908b99abd031bea
---
M tests/pwb_tests.py
1 file changed, 19 insertions(+), 11 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/tests/pwb_tests.py b/tests/pwb_tests.py
index 537a0c0..4fd6314 100755
--- a/tests/pwb_tests.py
+++ b/tests/pwb_tests.py
@@ -1,13 +1,7 @@
 #!/usr/bin/env python3
-"""
-Test pwb.py.
-
-If pwb.py does not load python files as expected, more tests from coverage
-should be added locally.
-https://bitbucket.org/ned/coveragepy/src/default/tests/test_execfile.py
-"""
+"""Test pwb.py."""
 #
-# (C) Pywikibot team, 2007-2022
+# (C) Pywikibot team, 2007-2023
 #
 # Distributed under the terms of the MIT license.
 #
@@ -29,11 +23,14 @@

     This is registered as a Site test because it will not run without a
     user config file.
+
+    .. note::
+       ``site`` must be explicitly set for pwb tests. This test does not
+       require network access, because tests/pwb/print_locals.py does
+       not use handle_args, etc. so version.py doesn't talk on the
+       network.
     """

-    # site must be explicitly set for pwb tests. This test does not require
-    # network access, because tests/pwb/print_locals.py does not use
-    # handle_args, etc. so version.py doesn't talk on the network.
     site = False
     net = False


--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910861
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: If9041c99f0603a5785a683223908b99abd031bea
Gerrit-Change-Number: 910861
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to