jenkins-bot submitted this change.

View Change


Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified
[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(-)

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)


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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I2a436d0f1cd2c06201688d4ebe211bf97c787640
Gerrit-Change-Number: 983522
Gerrit-PatchSet: 2
Gerrit-Owner: Mpaa <mpaa.wiki@gmail.com>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged