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

   ## Summary
   
   The "Mocking variables and connections" section in `best-practices.rst` used
   the deprecated `Connection.get_connection_from_secrets()` from 
`airflow.models`.
   Updated to use `Connection.get()` from `airflow.sdk`, which is the Airflow 
3.x
   standard (consistent with `Variable.get()` already shown in the same 
section).
   
   ## Changes
   
   - `airflow-core/docs/best-practices.rst`: Added `from airflow.sdk import 
Connection`
     import and replaced `Connection.get_connection_from_secrets("my_conn")` 
with
     `Connection.get("my_conn")` in the connection mocking example.
   
   Fixes #63996


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