jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[tests] Enable autorun tests

- enable autorun tests on Appveyour and github
- disable autorun for deeptest because login is not supported
for Jenkins tests
- add script_input for create_isbn_edition and unusedfiles
- add unusedfiles to expected_failures because the script is not
localized for default sites
- remove watchlist from allowed_failures; T77965 cannot be reproduced

Change-Id: Ia921db4de257d58c1d97e8d823f757ddabbf601b
---
M .appveyor.yml
M .github/workflows/pywikibot-ci.yml
M tests/script_tests.py
M tox.ini
4 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/.appveyor.yml b/.appveyor.yml
index d7a1176..7c27493 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -9,6 +9,7 @@
PYWIKIBOT_PASSWD_FILE: "%appdata%\\Pywikibot\\passwordfile"

PYSETUP_TEST_EXTRAS: "1"
+ PYWIKIBOT_TEST_AUTORUN: "1"
PYWIKIBOT_TEST_GUI: "1"
PYWIKIBOT_TEST_RUNNING: "1"

diff --git a/.github/workflows/pywikibot-ci.yml b/.github/workflows/pywikibot-ci.yml
index ae29edc..b316823 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -11,6 +11,7 @@
branches: [ master ]

env:
+ PYWIKIBOT_TEST_AUTORUN: 1
PYWIKIBOT_TEST_RUNNING: 1
PYWIKIBOT_USERNAME: Pywikibot-test

diff --git a/tests/script_tests.py b/tests/script_tests.py
index f519ce3..82257ad 100755
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -64,6 +64,7 @@
script_list = framework_scripts + list_scripts(scripts_path)

script_input = {
+ 'create_isbn_edition': '\n',
'interwiki': 'Test page that should not exist\n',
'misspelling': 'q\n',
'pagefromfile': 'q\n',
@@ -71,6 +72,7 @@
# Enter to begin, Enter for default summary.
'shell': '\n', # exits on end of stdin
'solve_disambiguation': 'Test page\nq\n',
+ 'unusedfiles': 'q\n',
'upload':
'https://upload.wikimedia.org/wikipedia/commons/'
'8/80/Wikipedia-logo-v2.svg\n\n\n',
@@ -400,13 +402,13 @@

_expected_failures = {
'catall', # stdout user interaction
+ 'unusedfiles', # not localized for default sites
'upload', # raises custom ValueError
}

_allowed_failures = [
'disambredir',
'misspelling', # T94681
- 'watchlist', # T77965
]

_arguments = '-simulate'
diff --git a/tox.ini b/tox.ini
index d6a313c..6a83292 100644
--- a/tox.ini
+++ b/tox.ini
@@ -22,7 +22,6 @@
setenv =
VIRTUAL_ENV={envdir}
PYWIKIBOT_NO_USER_CONFIG=2
- deeptest: PYWIKIBOT_TEST_AUTORUN=1
usedevelop = True
commands =
flake8: flake8 --version

To view, visit change 832461. To unsubscribe, or for help writing mail filters, visit settings.

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