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 (#39560)
  • Loading branch information
iamtodor committed May 12, 2024
1 parent defe459 commit f4cdb6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/apache-airflow/best-practices.rst
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 f4cdb6b

Please sign in to comment.