Skip to content

Commit 831459b

Browse files
fix: ruff with statements (#12578)
Signed-off-by: yihong0618 <[email protected]> Co-authored-by: crazywoola <[email protected]>
1 parent 4e10160 commit 831459b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/.ruff.toml

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ ignore = [
6969
"SIM108", # if-else-block-instead-of-if-exp
7070
"SIM113", # enumerate-for-loop
7171
"SIM117", # multiple-with-statements
72+
"SIM210", # if-expr-with-true-false
7273
]
7374

7475
[lint.per-file-ignores]

api/tests/integration_tests/controllers/test_controllers.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
def test_post_requires_login(app):
7-
with app.test_client() as client:
8-
with patch("flask_login.utils._get_user", mock_user):
9-
response = client.get("/console/api/data-source/integrates")
10-
assert response.status_code == 200
7+
with app.test_client() as client, patch("flask_login.utils._get_user", mock_user):
8+
response = client.get("/console/api/data-source/integrates")
9+
assert response.status_code == 200

0 commit comments

Comments
 (0)