1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 11:19:50 +03:00
aports/community/py3-praw
mio 96ceac84a3 community/py3-praw: fix test_auth test
Fix build error due to failed test.

```
_____________________________ TestAuth.test_limits _____________________________
[gw13] linux -- Python 3.12.10 /home/buildozer/aports/community/py3-praw/src/praw-7.8.1/.testenv/bin/python3

self = <tests.unit.models.test_auth.TestAuth object at 0x7fffef87a690>

    def test_limits(self):
        expected = {"remaining": None, "reset_timestamp": None, "used": None}
        for app in [
            installed_app(),
            script_app(),
            script_app_with_password(),
            web_app(),
        ]:
>           assert expected == app.auth.limits

tests/unit/models/test_auth.py:71:

[...]

        data = self._reddit._core._rate_limiter
        return {
            "remaining": data.remaining,
>           "reset_timestamp": data.reset_timestamp,
            "used": data.used,
        }
E       AttributeError: 'RateLimiter' object has no attribute 'reset_timestamp'

praw/models/auth.py:39: AttributeError
```
2025-05-11 22:37:53 +00:00
..
APKBUILD
test-auth.patch