Skip to content

Commit 6f918cb

Browse files
author
diana
committed
fix: Use camelCase keys in test payloads per v1.41 API spec
Replace match_condition → matchCondition and document_ids → documentIds in all test rule_body fixtures (lines 25-35, 49-59, 74-84)
1 parent 74dd9eb commit 6f918cb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/index/test_index_dynamic_search_rules_meilisearch.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ def test_get_dynamic_search_rule(test_index):
2424
rule_uid = "test-rule-1"
2525
rule_body = {
2626
"condition": "query = 'new'",
27-
"match_condition": "all",
27+
"matchCondition": "all",
2828
"actions": [
2929
{
3030
"action": "promote",
31-
"document_ids": ["1"],
31+
"documentIds": ["1"],
3232
"position": 1
3333
}
3434
]
@@ -48,11 +48,11 @@ def test_upsert_dynamic_search_rule(test_index):
4848
rule_uid = "test-rule-2"
4949
rule_body = {
5050
"condition": "query = 'hello'",
51-
"match_condition": "all",
51+
"matchCondition": "all",
5252
"actions": [
5353
{
5454
"action": "promote",
55-
"document_ids": ["2"],
55+
"documentIds": ["2"],
5656
"position": 1
5757
}
5858
]
@@ -73,11 +73,11 @@ def test_delete_dynamic_search_rule(test_index):
7373
rule_uid = "test-rule-3"
7474
rule_body = {
7575
"condition": "query = 'delete-me'",
76-
"match_condition": "all",
76+
"matchCondition": "all",
7777
"actions": [
7878
{
7979
"action": "promote",
80-
"document_ids": ["3"],
80+
"documentIds": ["3"],
8181
"position": 1
8282
}
8383
]

0 commit comments

Comments
 (0)