Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests, Beta-Cluster-Infrastructure.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  test_identity test of oauth_tests.TestOauthLoginManager fails on wpbeta since 
today.
  
    ======================================================================
    FAIL: test_identity (tests.oauth_tests.TestOauthLoginManager)
    Test identity.
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/runner/work/pywikibot/pywikibot/tests/oauth_tests.py", line 
118, in test_identity
        self.assertIsInstance(login_manager.identity, dict)
    AssertionError: None is not an instance of <class 'dict'>
    
    ----------------------------------------------------------------------
  
  The underlying code snippet is:
  
    @property
    def identity(self) -> dict[str, Any] | None:
        """Get identifying information about a user via an authorized token.
    
        .. versionchanged:: 9.6
           *leeway* parameter for ``mwoauth.identify`` function was
           increased to 30.0 seconds.
        """
        if self.access_token is None:
            pywikibot.error('Access token not set')
            return None
    
        consumer_token = mwoauth.ConsumerToken(*self.consumer_token)
        access_token = mwoauth.AccessToken(*self.access_token)
        try:
            identity = mwoauth.identify(self.site.base_url(self.site.path()),
                                        consumer_token,
                                        access_token,
                                        leeway=30.0)
        except Exception as e:
            pywikibot.error(e)
        else:
            return identity
    
        return None

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

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

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to