Page MenuHomePhabricator

script_tests.py does not respect -lang/-family settings
Open, LowPublicBUG REPORT

Description

pwb.py wrapper is able to handle global args like -lang and -family settings. The doc says:

"""
    python pwb.py <pwb options> <name_of_script> <options>

Currently <pwb options> are global options. This can be used for tests
to set the default site like (see T216825):

    python pwb.py -lang:de bot_tests -v

"""

But global option setting is ignored if running script_test.py because their own environment is executed with pwb_execute function

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as Low priority.Apr 12 2020, 12:52 PM
Xqt changed the subtype of this task from "Task" to "Bug Report".