From 24a9a57aa7cd5be49bb56b5419fcab27f7157d4b Mon Sep 17 00:00:00 2001 From: maxachis Date: Sat, 1 Jun 2024 21:58:47 -0400 Subject: [PATCH] Fix bug in test_search_tokens.py --- tests/integration/test_search_tokens.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_search_tokens.py b/tests/integration/test_search_tokens.py index 45d0b39b..bf346ede 100644 --- a/tests/integration/test_search_tokens.py +++ b/tests/integration/test_search_tokens.py @@ -22,8 +22,8 @@ def test_search_tokens_get( assert response.status_code == 200 data = response.json.get("data") assert ( - data["count"] == 1 + len(data) == 1 ), "Quick Search endpoint response should return only one entry" - entry = data["data"][0] + entry = data[0] assert entry["agency_name"] == "Agency A" assert entry["airtable_uid"] == "SOURCE_UID_1"