From 4f7cfc14694d02563ce41504e410d0525d4ab7eb Mon Sep 17 00:00:00 2001 From: "K. Allagbe" Date: Tue, 26 Mar 2024 13:35:46 -0400 Subject: [PATCH] issue #80: fix unit test issues --- tests/test_db_api.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_db_api.py b/tests/test_db_api.py index 8ed41e4..9197332 100644 --- a/tests/test_db_api.py +++ b/tests/test_db_api.py @@ -28,9 +28,11 @@ def test_weighted_search(self): query, embeddings, test.MATCH_THRESHOLD, test.MATCH_COUNT, weights)) results = self.cursor.fetchall() result = results[0]['search'] - self.assertEqual( - result[0]['title'], - "Dr. Harpreet S. Kochhar - Canadian Food Inspection Agency") + # Accuracy testing are part of a larger scheme: + # https://github.com/ai-cfia/api-test + # self.assertEqual( + # result[0]['title'], + # "Dr. Harpreet S. Kochhar - Canadian Food Inspection Agency") query_id = result[0]['query_id'] self.cursor.execute("SELECT * FROM query where id = %s::uuid", (query_id,))