gopidesupavan commented on code in PR #44326:
URL: https://github.com/apache/airflow/pull/44326#discussion_r1859533310


##########
clients/python/test_python_client.py:
##########
@@ -63,68 +65,77 @@
 # or AIRFLOW__CORE__LOAD_EXAMPLES environment variable set to True
 DAG_ID = "example_bash_operator"
 
-# Enter a context with an instance of the API client
-with airflow_client.client.ApiClient(configuration) as api_client:
-    errors = False
 
-    print("[blue]Getting DAG list")
-    dag_api_instance = dag_api.DAGApi(api_client)
-    try:
-        api_response = dag_api_instance.get_dags()
-        print(api_response)
-    except airflow_client.client.OpenApiException as e:
-        print(f"[red]Exception when calling DagAPI->get_dags: {e}\n")
-        errors = True
-    else:
-        print("[green]Getting DAG list successful")
+# Enter a context with an instance of the API client

Review Comment:
   Yes agree, add this one :)



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