From 980acece6d5ebccced0c802248c3c32b632d121c Mon Sep 17 00:00:00 2001 From: Bakar Tavadze Date: Fri, 3 May 2024 11:04:49 +0400 Subject: [PATCH] Update tests. --- backend/tests/unit_tests/app/test_app.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/backend/tests/unit_tests/app/test_app.py b/backend/tests/unit_tests/app/test_app.py index 7a5d0a21..b84f887f 100644 --- a/backend/tests/unit_tests/app/test_app.py +++ b/backend/tests/unit_tests/app/test_app.py @@ -112,7 +112,14 @@ async def test_threads() -> None: assert response.status_code == 200 assert [ _project(d, exclude_keys=["updated_at", "user_id"]) for d in response.json() - ] == [{"assistant_id": aid, "name": "bobby", "thread_id": tid}] + ] == [ + { + "assistant_id": aid, + "name": "bobby", + "thread_id": tid, + "metadata": {"assistant_type": "chatbot"}, + } + ] response = await client.put( f"/threads/{tid}",