Dvorapa added a comment.

  In T244062#6017969 <https://phabricator.wikimedia.org/T244062#6017969>, @Xqt 
wrote:
  
  > In T244062#6017699 <https://phabricator.wikimedia.org/T244062#6017699>, 
@Dvorapa wrote:
  >
  >> Shouldn't we login to meta in the create_shortlink method itself? Rather 
than workaround it in tests?
  >
  > I thought that unified global account are logged in automatically. Seems 
that isn't here, probably due to login/logout tests or something else. I never 
saw this failure locally. I think for a logged in bot it works independently of 
the site. But here in test environment it does not. Probable the test class can 
be switched to DefaultSiteTestCase but with additional login at meta within 
setUpClass.
  
  Okay, what if tests are "unified global account are logged in automatically" 
in the beginning of tests (initiation of Meta Class?), then `login_logout` test 
will logout all of them successfully and finally they are logged out here? 
Perhaps we should try to reinitiate Meta Class after `login_logout` test?

TASK DETAIL
  https://phabricator.wikimedia.org/T244062

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt, Dvorapa
Cc: Legoktm, revi, Dvorapa, Aklapper, pywikibot-bugs-list, Xqt, Zkhalido, 
Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to