[Pywikipedia-bugs] [Maniphest] [Commented On] T336630: TestShortLink::test_create_short_link sometimes fails with oauth credentials in user-config.py

2023-05-15 Thread zhuyifei1999
zhuyifei1999 added a comment. > I think the bottom line here is that the pywikibot system as a whole depends too much on external resources (such as user-config.py) which makes the test suite fragile. There really needs to be a way for the test framework to supply a complete configuration

[Pywikipedia-bugs] [Maniphest] [Commented On] T336630: TestShortLink::test_create_short_link sometimes fails with oauth credentials in user-config.py

2023-05-14 Thread RoySmith
RoySmith added a comment. OK, I mostly understand what's happening here. My user-config.py defines oauth credentials for {en,test}.wikipedia.org, and those credentials were created to only be valid on those specific projects