nikoki commented on code in PR #72322:
URL: https://github.com/apache/airflow/pull/72322#discussion_r3958637336


##########
providers/google/tests/unit/google/cloud/log/test_gcs_task_handler.py:
##########
@@ -209,8 +209,20 @@ def test_upload(
                 mock_write_method.assert_called_once()
                 if delete_local_copy and mock_write_method_result:
                     mock_rmtree.assert_called_once_with(tmp_path.as_posix())
+                    # shutil.rmtree is mocked here, so it never actually 
removes the file from

Review Comment:
   Added `test_upload_repeated_cycles_no_duplication`, mirroring #67144's 
pattern: 3 cycles, asserting each line appears exactly once in the final blob 
and the local file is truncated after each successful upload. All 50 tests in 
the file pass.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to