On Wed, May 17, 2023 at 10:49 AM Roy Smith roy@panix.com wrote:
On May 15, 2023, at 3:11 PM, YiFei Zhu zhuyifei1999@gmail.com wrote:
having tests depend on user-supplied user-config.py is just ... broken.
I hear you!
So, still trying to find my way around the test suite, I see appveyor.yml. I don't know anything about Appveyor, but it looks like this is building a known user-config.py before kicking off a test run. Is there some reason this couldn't be part of the global test setup for all tests?
My educated guess: it contains login credentials to live projects. Not sure how they can be shared. But I don't think live testing against production wikis in unit tests makes sense anyways.
I tried tracing back how the test suite works, but to be honest, I stopped reading once I found MetaTestCaseClass.
I find the github workflow files easier to follow. .github/workflows/pywikibot-ci.yml for example has a step called "Generate user files" that creates the user-config.py.
YiFei Zhu
pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/me... To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org