mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-22 05:22:56 +00:00
* Update the ruff rules and format the code * Update the per-file-ignores * Update the ci * Update rules * Fix codes * Fix pagination * Update rules
8 lines
269 B
Python
8 lines
269 B
Python
from starlette.testclient import TestClient
|
|
|
|
|
|
def test_logout(client: TestClient, token_headers: dict[str, str]) -> None:
|
|
response = client.post('/auth/logout', headers=token_headers)
|
|
assert response.status_code == 200
|
|
assert response.json()['code'] == 200
|