Dev-iL commented on code in PR #69251:
URL: https://github.com/apache/airflow/pull/69251#discussion_r4664523236


##########
dev/breeze/tests/test_publish_docs_to_s3.py:
##########
@@ -193,7 +193,7 @@ def test_publish_stable_version_docs(
         overwrite,
         expected_source_dest_mapping,
     ):
-        mock_path_exists.return_value = True
+        mock_path_exists.side_effect = lambda path: 
str(path).endswith("/stable.txt")

Review Comment:
   TL;DR - this fixes an existing bug in breeze that was encountered while 
working on these changes. It can be split out of this PR if you prefer.
   
   <details><summary>Details</summary>
   <p>
   
   The pre-existing Breeze test failure on Python 3.14: the old mock made every 
`os.path.exists()` call return `True`. Python 3.14’s `Path.exists()` calls that 
same function, so Breeze’s console tried to read a missing 
`.build/.suppress_colour` file and raised `FileNotFoundError`. The new mock 
reports only `stable.txt` paths as present, which is what the test needs.
   
   **Verified on Python 3.14.9 with an empty Breeze cache.** The old mock 
failed three of four cases. The new mock passed all four, and the full test 
file passed all 21 tests. Restoring the base branch’s PostgreSQL settings 
reproduced the same failures.
   </p>
   </details> 



-- 
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