@@ -297,13 +297,13 @@ def test_push_batched_matrix(
297297 batch_interval_seconds = 60 ,
298298 )
299299
300- client = TestClient (get_app (fs ))
301-
302- # use a multi-row payload to ensure we test non-trivial dfs
303- resp = client .post ("/push" , json = push_body_many (push_mode , count = 2 , id_start = 100 ))
304- needs_offline = push_mode in (PushMode .OFFLINE , PushMode .ONLINE_AND_OFFLINE )
305- expected_status = 202 if batching_enabled and needs_offline else 200
306- assert resp .status_code == expected_status
300+ client = TestClient (get_app (fs ))
301+
302+ # use a multi-row payload to ensure we test non-trivial dfs
303+ resp = client .post ("/push" , json = push_body_many (push_mode , count = 2 , id_start = 100 ))
304+ needs_offline = push_mode in (PushMode .OFFLINE , PushMode .ONLINE_AND_OFFLINE )
305+ expected_status = 202 if batching_enabled and needs_offline else 200
306+ assert resp .status_code == expected_status
307307
308308 # Collect calls
309309 sync_calls = fs .push .call_args_list
@@ -391,21 +391,21 @@ def test_offline_batches_are_separated_by_flags(mock_fs_factory):
391391 # Base body: allow_registry_cache=True, transform_on_write=True (default)
392392 body_base = push_body_many (PushMode .OFFLINE , count = 2 , id_start = 100 )
393393
394- # 1) Default flags: allow_registry_cache=True, transform_on_write=True
395- resp1 = client .post ("/push" , json = body_base )
396- assert resp1 .status_code == 202
394+ # 1) Default flags: allow_registry_cache=True, transform_on_write=True
395+ resp1 = client .post ("/push" , json = body_base )
396+ assert resp1 .status_code == 202
397397
398398 # 2) Different allow_registry_cache
399- body_allow_false = dict (body_base )
400- body_allow_false ["allow_registry_cache" ] = False
401- resp2 = client .post ("/push" , json = body_allow_false )
402- assert resp2 .status_code == 202
399+ body_allow_false = dict (body_base )
400+ body_allow_false ["allow_registry_cache" ] = False
401+ resp2 = client .post ("/push" , json = body_allow_false )
402+ assert resp2 .status_code == 202
403403
404404 # 3) Different transform_on_write
405- body_transform_false = dict (body_base )
406- body_transform_false ["transform_on_write" ] = False
407- resp3 = client .post ("/push" , json = body_transform_false )
408- assert resp3 .status_code == 202
405+ body_transform_false = dict (body_base )
406+ body_transform_false ["transform_on_write" ] = False
407+ resp3 = client .post ("/push" , json = body_transform_false )
408+ assert resp3 .status_code == 202
409409
410410 # Immediately after: no flush expected yet (interval-based)
411411 assert fs .push .call_count == 0
@@ -446,10 +446,10 @@ def test_offline_batcher_interval_flush(mock_fs_factory):
446446 client = TestClient (get_app (fs ))
447447
448448 # Send a single OFFLINE push (2 rows), below size threshold
449- resp = client .post (
450- "/push" , json = push_body_many (PushMode .OFFLINE , count = 2 , id_start = 500 )
451- )
452- assert resp .status_code == 202
449+ resp = client .post (
450+ "/push" , json = push_body_many (PushMode .OFFLINE , count = 2 , id_start = 500 )
451+ )
452+ assert resp .status_code == 202
453453
454454 # Immediately after: no sync push yet (buffer only)
455455 assert fs .push .call_count == 0
0 commit comments