Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /spraakbanken_karp-backend /tests /e2e /test_stats_api.py
| import pytest # noqa: F401 | |
| from fastapi import status | |
| from tests.e2e.conftest import AccessToken | |
| def test_stats_wo_auth(fa_data_client): # noqa: ANN201 | |
| response = fa_data_client.get( | |
| "/stats/places/area", | |
| ) | |
| assert response.status_code == status.HTTP_200_OK | |
| entries = response.json() | |
| print(f"{entries=}") | |
| assert len(entries) == 4 | |
| def test_stats_w_auth(fa_data_client, read_token: AccessToken): # noqa: ANN201 | |
| response = fa_data_client.get( | |
| "/stats/places/area", | |
| headers=read_token.as_header(), | |
| ) | |
| assert response.status_code == status.HTTP_200_OK | |
| entries = response.json() | |
| print(f"{entries=}") | |
| assert len(entries) == 4 | |
Xet Storage Details
- Size:
- 699 Bytes
- Xet hash:
- d129f41362673b522e8d7a9d63670086cb1f5db1333c05108f2489511b8ddb8f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.