nailo2c opened a new pull request, #51035:
URL: https://github.com/apache/airflow/pull/51035

   Hi folks! While following **`contributing-docs/testing/unit_tests.rst`** on 
a fresh Airflow 3.0 checkout, I noticed the shell snippets either fail outright 
or reference legacy paths/flags.
   
   This PR refreshes the doc so newcomers can copy‑paste and succeed on the 
first try.
   
   ### ✨ What’s fixed
   
   | Area                | Old example                                   | 
Issue                    | New example                                          
                                                                               |
   | ------------------- | --------------------------------------------- | 
------------------------ | 
-----------------------------------------------------------------------------------------------------------------------------------
 |
   | **Pytest**          | `pytest tests/core/...`                       | path 
no longer exists    | `pytest airflow-core/tests/unit/...`                      
                                                                          |
   | **Breeze shortcut** | `breeze core-testing …`                       | 
command removed          | `breeze testing core-tests …`                        
                                                                               |
   | **CLI flag**        | `--skip--docker-compose-down`                 | 
double hyphen            | `--skip-docker-compose-down`                         
                                                                               |
   | **Coverage report** | run `airflow webserver`, open `/dev/coverage` | 
route not mounted in 3.x | `cd htmlcov && python -m http.server 5555`, then 
open **[http://localhost:25555/](http://localhost:25555)** (Breeze maps 
5555→25555) |
   
   ### ✅ Verification
   
   All updated commands were executed inside a Breeze container launched with:
   
   ```bash
   breeze --python 3.9 --backend postgres
   ```
   
   ---
   
   I aimed to modernise the docs for Airflow 3.x; however, if any of these 
changes would break needed compatibility with Airflow 2.x, or if you feel the 
update isn’t necessary, please let me know and I’ll gladly revise or withdraw.
   
   Thanks for your review!


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