fix(evals):update auth token handling

This commit is contained in:
Anish Sarkar 2026-06-24 03:55:39 +05:30
parent 65ab1cbdd4
commit 951cb1a717
2 changed files with 11 additions and 12 deletions

View file

@ -46,8 +46,8 @@ async def test_acquire_token_jwt_mode_short_circuits():
@pytest.mark.asyncio
@respx.mock
async def test_acquire_token_local_mode_posts_form():
respx.post("http://test/auth/jwt/login").mock(
async def test_acquire_token_local_mode_posts_desktop_login_json():
respx.post("http://test/auth/desktop/login").mock(
return_value=httpx.Response(
200, json={"access_token": "T", "refresh_token": "R", "token_type": "bearer"}
)