blitz_api/tests/routers/test_system.py
2022-08-24 19:19:58 +02:00

13 lines
325 B
Python

from starlette.testclient import TestClient
from app.main import app
from tests.routers.utils import call_route
client = TestClient(app)
def test_route_authentications_latest():
prefixes = ["/latest/system", "/v1/system"]
for prefix in prefixes:
call_route(client, f"{prefix}/refresh-token", method="p")