jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/983522 )
Change subject: [bugfix] Allow to run tests with oauth ......................................................................
[bugfix] Allow to run tests with oauth
Use api.php instead of index.php to check if site in alive.
Bug: T352606
Change-Id: I2a436d0f1cd2c06201688d4ebe211bf97c787640 --- M tests/aspects.py 1 file changed, 14 insertions(+), 1 deletion(-)
Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/aspects.py b/tests/aspects.py index ff191ee..f6dc453 100644 --- a/tests/aspects.py +++ b/tests/aspects.py @@ -940,7 +940,7 @@ # obsolete without a mapping to a hostname. with suppress(KeyError): data['hostname'] = ( - data['site'].base_url(data['site'].path())) + data['site'].base_url(data['site'].apipath()))
cm.__exit__(None, None, None)