uranusjr commented on code in PR #32529:
URL: https://github.com/apache/airflow/pull/32529#discussion_r1260182632
##########
tests/www/views/test_views_connection.py:
##########
@@ -350,12 +351,11 @@ def test_duplicate_connection_error(admin_client):
data = {"action": "mulduplicate", "rowid": [connections[0].id]}
resp = admin_client.post("/connection/action_post", data=data,
follow_redirects=True)
-
- expected_result = {f"test_duplicate_postgres_connection_copy{i}" for i in
range(1, 11)}
-
assert resp.status_code == 200
- response = {conn[0] for conn in session.query(Connection.conn_id).all()}
- assert expected_result == response
+
+ expected_connections_ids = {f"test_duplicate_postgres_connection_copy{i}"
for i in range(1, 11)}
+ connections_ids = {conn.conn_id for conn in
session.query(Connection.conn_id).all()}
Review Comment:
```suggestion
connections_ids = {conn.conn_id for conn in
session.query(Connection.conn_id)}
```
--
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]