Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

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.py
index 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 url
assert "chatId=628123%40c.us" in url # @ percent-encoded in query
assert "direction=incoming" in url
- assert "type=chat" in url
+ assert "type=text" in url
assert "from=628123456789%40c.us" in url
assert "dateFrom=1720000000000" in url
assert "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={