Skip to content

Commit

Permalink
Update best-practices.rst: fix Connection.get -> Connection. get_conn…
Browse files Browse the repository at this point in the history
…ection_from_secrets (apache#39560)
  • Loading branch information
iamtodor authored and romsharon98 committed Jul 26, 2024
1 parent 5bb21b2 commit 6974a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/apache-airflow/best-practices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ For connection, use :envvar:`AIRFLOW_CONN_{CONN_ID}`.
)
conn_uri = conn.get_uri()
with mock.patch.dict("os.environ", AIRFLOW_CONN_MY_CONN=conn_uri):
assert "cat" == Connection.get("my_conn").login
assert "cat" == Connection.get_connection_from_secrets("my_conn").login
Metadata DB maintenance
^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 6974a2e

Please sign in to comment.