Revanth14 commented on code in PR #68700:
URL: https://github.com/apache/airflow/pull/68700#discussion_r3439398174
##########
airflow-core/tests/unit/models/test_connection.py:
##########
@@ -540,3 +593,18 @@ def test_get_conn_id_to_team_name_mapping(self,
testing_team: Team, session: Ses
"test_conn2": None,
}
clear_db_connections()
+
+ @pytest.mark.db_test
+ def test_existing_connection_with_invalid_port_can_be_loaded(self,
session: Session):
+ clear_db_connections()
+ session.execute(
+
Connection.__table__.insert().values(conn_id="legacy_invalid_port",
conn_type="test", port=0)
Review Comment:
Updated this one to use `session.add(...)` 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]