John Vandenberg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/180031
Change subject: Hostname support for WikimediaDefaultSiteTestCase
......................................................................
Hostname support for WikimediaDefaultSiteTestCase
The test framework now expects a hostname for each site, so
it can verify the site is working before running tests.
That feature fails on WikimediaDefaultSiteTestCase, as it
changes the sites object after the main initialisation code
has been completed. Add the hostname manually.
Change-Id: I6abb60697dacef698daa03b684e48f8088e52255
---
M tests/aspects.py
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/31/180031/1
diff --git a/tests/aspects.py b/tests/aspects.py
index 3c1a190..8e82b55 100644
--- a/tests/aspects.py
+++ b/tests/aspects.py
@@ -901,7 +901,8 @@
cls.site: {
'family': 'wikipedia',
'code': 'en',
- 'site': cls.site
+ 'site': cls.site,
+ 'hostname': cls.site.hostname(),
}
}
--
To view, visit https://gerrit.wikimedia.org/r/180031
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6abb60697dacef698daa03b684e48f8088e52255
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits