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)


--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/983522
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I2a436d0f1cd2c06201688d4ebe211bf97c787640
Gerrit-Change-Number: 983522
Gerrit-PatchSet: 2
Gerrit-Owner: Mpaa <[email protected]>
Gerrit-Reviewer: JJMC89 <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to