Debian Codegraph @

tests/github/test_meta.py

raw
1 """Test meta."""
2 # pylint: disable=missing-docstring
3 import pytest
4
5 from aiogithubapi import GitHubAPI
6
7 from tests.common import MockedRequests
8
9
10 @pytest.mark.asyncio
11 async def test_meta(github_api: GitHubAPI, mock_requests: MockedRequests):
12 response = await github_api.meta()
13 assert response.status == 200
14 assert response.data.verifiable_password_authentication
15 assert (
16 response.data.ssh_key_fingerprints.sha256_ed25519
17 == "+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU"
18 )
19 assert mock_requests.called == 1
20 assert mock_requests.last_request["url"] == "https://api.github.com/meta"