Buckets:
| from collections.abc import AsyncGenerator | |
| import httpx | |
| import pytest | |
| import pytest_asyncio | |
| from fastapi import status | |
| from fief.app import app | |
| from tests.conftest import HTTPClientGeneratorType | |
| async def test_client_app( | |
| test_client_generator: HTTPClientGeneratorType, | |
| ) -> AsyncGenerator[httpx.AsyncClient, None]: | |
| async with test_client_generator(app) as test_client: | |
| yield test_client | |
| async def test_admin_trailing_slash_redirection_(test_client_app: httpx.AsyncClient): | |
| response = await test_client_app.get("/admin") | |
| assert response.status_code == status.HTTP_308_PERMANENT_REDIRECT | |
| assert response.headers["location"] == "/admin/" | |
Xet Storage Details
- Size:
- 716 Bytes
- Xet hash:
- 2901249082f0a546b4cc3126df522c8790d72d815535c5cf584cc09b8a8dd568
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.