Package Details: python-fxa 0.7.9-1

Git Clone URL: https://aur.archlinux.org/python-fxa.git (read-only, click to copy)
Package Base: python-fxa
Description: Python library for interacting with the Firefox Accounts ecosystem
Upstream URL: https://github.com/mozilla/PyFxA
Licenses: MPL-2.0
Submitter: jelly
Maintainer: None
Last Packager: oprypin
Votes: 1
Popularity: 0.92
First Submitted: 2024-10-06 11:38 (UTC)
Last Updated: 2024-11-24 18:16 (UTC)

Latest Comments

mqs commented on 2025-02-17 23:38 (UTC) (edited on 2025-02-17 23:41 (UTC) by mqs)

Same here, I get 2 failed tests, but weirdly, they only show up when I build this inside a docker container(?), when I build it on the same system, but outside, the tests succeed just fine. Here are they:

pytest Summary
=================================== FAILURES ===================================

______________________ TestCoreClientSession_0.test_totp _______________________


self = <fxa.tests.test_core.TestCoreClientSession_0 testMethod=test_totp>


    def test_totp(self):

        resp = self.session.totp_create()



        # Should exist even if not verified

        self.assertTrue(self.session.totp_exists())



        # Creating again should work unless verified

        resp = self.session.totp_create()



        # Set session unverified to test next call

        self.session.verified = False



        # Verify the code

        code = pyotp.TOTP(resp["secret"]).now()

>       self.assertTrue(self.session.totp_verify(code))

E       AssertionError: False is not true


fxa/tests/test_core.py:444: AssertionError

______________________ TestCoreClientSession_1.test_totp _______________________


self = <fxa.tests.test_core.TestCoreClientSession_1 testMethod=test_totp>


    def test_totp(self):

        resp = self.session.totp_create()



        # Should exist even if not verified

        self.assertTrue(self.session.totp_exists())



        # Creating again should work unless verified

        resp = self.session.totp_create()



        # Set session unverified to test next call

        self.session.verified = False



        # Verify the code

        code = pyotp.TOTP(resp["secret"]).now()

>       self.assertTrue(self.session.totp_verify(code))

E       AssertionError: False is not true


fxa/tests/test_core.py:444: AssertionError

simona commented on 2024-12-25 08:58 (UTC)

no more builds