It was discovered that several unittests actually end up connecting to live sites (due to initialisation of Pywikibot objects.
The tests should be improved to run fully offline
It was discovered that several unittests actually end up connecting to live sites (due to initialisation of Pywikibot objects.
The tests should be improved to run fully offline
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Mock pywikibot in tests and block network via pytest-socket | labs/tools/heritage | master | +119 -57 |
Change #1251986 had a related patch set uploaded (by Lokal Profil; author: Lokal Profil):
[labs/tools/heritage@master] Mock pywikibot Site/Page in tests to allow offline execution
Change #1251986 merged by jenkins-bot:
[labs/tools/heritage@master] Mock pywikibot in tests and block network via pytest-socket
The merged patch mickes the Pywikibot features which connect to live sites and adds an additional block to prevent any future tests from being able to connect to the network