tests/legacy/github/test_get_rate_limit.py
raw| 1 | # pylint: disable=missing-docstring, redefined-outer-name, unused-import |
| 2 | import pytest |
| 3 | |
| 4 | from aiogithubapi import GitHub |
| 5 | |
| 6 | from tests.legacy.responses.base import base_response |
| 7 | |
| 8 | |
| 9 | @pytest.mark.asyncio |
| 10 | async def test_get_rate_limit(mock_response, base_response, github: GitHub): |
| 11 | mock_response.mock_data = base_response |
| 12 | |
| 13 | rate_limit = await github.get_rate_limit() |
| 14 | assert rate_limit["remaining"] == "4999" |