jayvdb added a comment. As `RequireUserMixin` logs in during `setUp()`, the `mysite.user()` should exist even if a prior unit test has caused a logout. The log shows that `setUp` for `testLogEvents` doesnt login, but `test_methods` does.
testLogEvents (tests.site_tests.SiteUserTestCase) Test the site.logevents() method. ... FAIL test_methods (tests.site_tests.SiteUserTestCase) ... Logging in to wikipedia:en as JVbot-test Logging in to wikipedia:en as JVbot-test ok TASK DETAIL https://phabricator.wikimedia.org/T109946 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: jayvdb Cc: Aklapper, jayvdb, pywikibot-bugs-list, Malyacko _______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs