Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
test(sdk): use the gateway message type in Python search fixtures
Yudhi Armyndharis87e438441818
diff --git a/sdk/python/tests/test_sdk.py b/sdk/python/tests/test_sdk.pyindex 0e91d9c4a..8f535e81b 100644--- a/sdk/python/tests/test_sdk.py+++ b/sdk/python/tests/test_sdk.py@@ -1019,7 +1019,7 @@ class TestSearch:"sessionId": "s1","chatId": "[email protected]","direction": "incoming",- "type": "chat",+ "type": "text","from": "[email protected]","dateFrom": 1720000000000,"dateTo": 1720100000000,@@ -1032,7 +1032,7 @@ class TestSearch:assert "sessionId=s1" in urlassert "chatId=628123%40c.us" in url # @ percent-encoded in queryassert "direction=incoming" in url- assert "type=chat" in url+ assert "type=text" in urlassert "from=628123456789%40c.us" in urlassert "dateFrom=1720000000000" in urlassert "dateTo=1720100000000" in url@@ -1044,7 +1044,7 @@ class TestSearch:"messageId": "m1", "waMessageId": "wam1", "sessionId": "s1","chatId": "[email protected]", "body": "please send the invoice","snippet": "please send the <mark>invoice</mark>", "timestamp": 1720000000,- "type": "chat", "direction": "incoming", "from": "[email protected]",+ "type": "text", "direction": "incoming", "from": "[email protected]","score": 0.42,}backend = MockBackend().on("GET", "/api/search", body={