Skip to content

Commit 17f2acd

Browse files
committed
fix: Fix tests
1 parent 823a3fe commit 17f2acd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/embeddings/test_jina_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async def test_embed_batch_sends_task_for_code_embeddings_model(monkeypatch):
9494
finally:
9595
await p.close()
9696
body = json.loads(route.calls.last.request.read())
97-
assert body["task"] == "retrieval.passage"
97+
assert body["task"] == "nl2code.passage"
9898

9999

100100
@respx.mock
@@ -111,7 +111,7 @@ async def test_embed_query_sends_task_for_code_embeddings_model(monkeypatch):
111111
finally:
112112
await p.close()
113113
body = json.loads(route.calls.last.request.read())
114-
assert body["task"] == "retrieval.query"
114+
assert body["task"] == "nl2code.query"
115115

116116

117117
@respx.mock

0 commit comments

Comments
 (0)