From a814b49f07ebbc9c92da81cf33d03e8cc2dc7e36 Mon Sep 17 00:00:00 2001 From: iamtodor Date: Sat, 11 May 2024 09:51:30 +0200 Subject: [PATCH] Update best-practices.rst: fix Connection.get -> Connection. get_connection_from_secrets --- docs/apache-airflow/best-practices.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/apache-airflow/best-practices.rst b/docs/apache-airflow/best-practices.rst index ff888a093ec85..8022412499c33 100644 --- a/docs/apache-airflow/best-practices.rst +++ b/docs/apache-airflow/best-practices.rst @@ -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 ^^^^^^^^^^^^^^^^^^^^^^^