mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-10-12 12:20:27 +00:00
12 lines
387 B
Python
12 lines
387 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
from starlette.testclient import TestClient
|
|
|
|
from backend.core.conf import settings
|
|
|
|
|
|
def test_logout(client: TestClient, token_headers: dict[str, str]) -> None:
|
|
response = client.post(f'{settings.FASTAPI_API_V1_PATH}/auth/logout', headers=token_headers)
|
|
assert response.status_code == 200
|
|
assert response.json()['code'] == 200
|