@@ -123,11 +123,9 @@ def sync_gen():
123
123
124
124
async def test_all_errors_from_chunk_are_raised_on_failure (self , async_client ):
125
125
await async_client .indices .create (
126
- "i" ,
127
- {
128
- "mappings" : {"properties" : {"a" : {"type" : "integer" }}},
129
- "settings" : {"number_of_shards" : 1 , "number_of_replicas" : 0 },
130
- },
126
+ index = "i" ,
127
+ mappings = {"properties" : {"a" : {"type" : "integer" }}},
128
+ settings = {"number_of_shards" : 1 , "number_of_replicas" : 0 },
131
129
)
132
130
await async_client .cluster .health (wait_for_status = "yellow" )
133
131
@@ -334,11 +332,9 @@ async def test_stats_only_reports_numbers(self, async_client):
334
332
335
333
async def test_errors_are_reported_correctly (self , async_client ):
336
334
await async_client .indices .create (
337
- "i" ,
338
- {
339
- "mappings" : {"properties" : {"a" : {"type" : "integer" }}},
340
- "settings" : {"number_of_shards" : 1 , "number_of_replicas" : 0 },
341
- },
335
+ index = "i" ,
336
+ mappings = {"properties" : {"a" : {"type" : "integer" }}},
337
+ settings = {"number_of_shards" : 1 , "number_of_replicas" : 0 },
342
338
)
343
339
await async_client .cluster .health (wait_for_status = "yellow" )
344
340
@@ -360,11 +356,9 @@ async def test_errors_are_reported_correctly(self, async_client):
360
356
361
357
async def test_error_is_raised (self , async_client ):
362
358
await async_client .indices .create (
363
- "i" ,
364
- {
365
- "mappings" : {"properties" : {"a" : {"type" : "integer" }}},
366
- "settings" : {"number_of_shards" : 1 , "number_of_replicas" : 0 },
367
- },
359
+ index = "i" ,
360
+ mappings = {"properties" : {"a" : {"type" : "integer" }}},
361
+ settings = {"number_of_shards" : 1 , "number_of_replicas" : 0 },
368
362
)
369
363
await async_client .cluster .health (wait_for_status = "yellow" )
370
364
@@ -406,11 +400,9 @@ async def test_ignore_error_if_raised(self, async_client):
406
400
407
401
async def test_errors_are_collected_properly (self , async_client ):
408
402
await async_client .indices .create (
409
- "i" ,
410
- {
411
- "mappings" : {"properties" : {"a" : {"type" : "integer" }}},
412
- "settings" : {"number_of_shards" : 1 , "number_of_replicas" : 0 },
413
- },
403
+ index = "i" ,
404
+ mappings = {"properties" : {"a" : {"type" : "integer" }}},
405
+ settings = {"number_of_shards" : 1 , "number_of_replicas" : 0 },
414
406
)
415
407
await async_client .cluster .health (wait_for_status = "yellow" )
416
408
@@ -867,7 +859,7 @@ async def test_reindex_passes_kwargs_to_scan_and_bulk(
867
859
bulk_kwargs = {"refresh" : True },
868
860
)
869
861
870
- assert await async_client .indices .exists ("prod_index" )
862
+ assert await async_client .indices .exists (index = "prod_index" )
871
863
assert (
872
864
50
873
865
== (await async_client .count (index = "prod_index" , q = "type:answers" ))["count" ]
@@ -886,7 +878,7 @@ async def test_reindex_accepts_a_query(self, async_client, reindex_setup):
886
878
)
887
879
await async_client .indices .refresh ()
888
880
889
- assert await async_client .indices .exists ("prod_index" )
881
+ assert await async_client .indices .exists (index = "prod_index" )
890
882
assert (
891
883
50
892
884
== (await async_client .count (index = "prod_index" , q = "type:answers" ))["count" ]
@@ -900,7 +892,7 @@ async def test_all_documents_get_moved(self, async_client, reindex_setup):
900
892
await helpers .async_reindex (async_client , "test_index" , "prod_index" )
901
893
await async_client .indices .refresh ()
902
894
903
- assert await async_client .indices .exists ("prod_index" )
895
+ assert await async_client .indices .exists (index = "prod_index" )
904
896
assert (
905
897
50
906
898
== (await async_client .count (index = "prod_index" , q = "type:questions" ))[
0 commit comments