mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-14 22:52:15 +02:00
fix(evals):update auth token handling
This commit is contained in:
parent
65ab1cbdd4
commit
951cb1a717
2 changed files with 11 additions and 12 deletions
|
|
@ -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"}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue