Skip to content

Commit

Permalink
[tests] remove PYWIKIBOT_TEST_WRITE_FAIL from documentation
Browse files Browse the repository at this point in the history
Change-Id: Ieec6c02cc3e22925647049750cc87e02c256935e
  • Loading branch information
xqt committed Oct 13, 2024
1 parent c7fb9ac commit d77c301
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions tests/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,11 @@ Environment variables

PYWIKIBOT_TEST_WRITE=1

**PYWIKIBOT_TEST_WRITE_FAIL**
There are a set of 'edit failure' tests, which attempt to write to the wikis
and **should** fail. If there is a bug in pywikibot or MediaWiki, these
tests **may** actually perform a write operation.

To enable 'edit failure' tests, set::

PYWIKIBOT_TEST_WRITE_FAIL=1

.. deprecated:: 9.2
this environment variable no longer has any effect; use
:envvar:`PYWIKIBOT_TEST_WRITE` instead.
.. versionremoved:: 9.2
The :envvar:`PYWIKIBOT_TEST_WRITE_FAIL` environment variable; use
:envvar:`PYWIKIBOT_TEST_WRITE` instead.
.. versionremoved:: 9.5
The :envvar:`PYWIKIBOT_TEST_GUI` environment variable.

Instead of setting the environment by the os (or `os.environ` as well) you can use the :mod:`pwb`
wrapper script to set it::
Expand All @@ -167,9 +160,6 @@ The assignment can be omitted and defaults to 1. The following is equal to the l

pwb PYWIKIBOT_TEST_WRITE script_tests -v TestScriptSimulate.test_archivebot

.. versionremoved:: 9.5
The :envvar:`PYWIKIBOT_TEST_GUI` environment variable.

Decorators
==========

Expand Down

0 comments on commit d77c301

Please sign in to comment.