oidc-fastapi-test/tests/basic.py

12 lines
238 B
Python
Raw Normal View History

2025-01-10 19:18:57 +01:00
from fastapi.testclient import TestClient
from oidc_test.main import app
client = TestClient(app)
def test_bootstrap():
with TestClient(app) as client:
response = client.get("/")
assert response.status_code == 200