Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /fief-dev_fief /tests /test_apps_security_headers.py
| import httpx | |
| import pytest | |
| from fastapi import status | |
| from tests.conftest import TenantParams | |
| from tests.helpers import security_headers_assertions | |
| async def test_admin_app(test_client_api: httpx.AsyncClient): | |
| response = await test_client_api.get("/openapi.json") | |
| assert response.status_code == status.HTTP_200_OK | |
| security_headers_assertions(response) | |
| async def test_dashboard_app(test_client_dashboard: httpx.AsyncClient): | |
| response = await test_client_dashboard.get("/") | |
| assert response.status_code == status.HTTP_200_OK | |
| security_headers_assertions(response) | |
| async def test_auth_app( | |
| tenant_params: TenantParams, test_client_auth: httpx.AsyncClient | |
| ): | |
| response = await test_client_auth.get( | |
| f"{tenant_params.path_prefix}/.well-known/jwks.json" | |
| ) | |
| assert response.status_code == status.HTTP_200_OK | |
| security_headers_assertions(response) | |
Xet Storage Details
- Size:
- 1.01 kB
- Xet hash:
- 5b7756796c27216b20183485fa938f32d3db9589aa0bbcfb069a88b3d176f90a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.