vincbeck commented on code in PR #63994:
URL: https://github.com/apache/airflow/pull/63994#discussion_r2966485960
##########
airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_connections.py:
##########
@@ -287,10 +288,15 @@ def test_post_should_respond_201(self, test_client,
session, body):
_check_last_log(session, dag_id=None, event="post_connection",
logical_date=None)
def test_post_should_respond_201_with_team(self, test_client, session,
testing_team):
- response = test_client.post(
- "/connections",
- json={"connection_id": TEST_CONN_ID, "conn_type": TEST_CONN_TYPE,
"team_name": testing_team.name},
- )
+ with conf_vars({("core", "multi_team"): "True"}):
Review Comment:
nit: can you add it with the decorator `@conf_vars`, I find it cleaner. That
applies for the other tests as well
--
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]