Skip to content

Commit

Permalink
fix: ruff with statements (#12578)
Browse files Browse the repository at this point in the history
Signed-off-by: yihong0618 <[email protected]>
Co-authored-by: crazywoola <[email protected]>
  • Loading branch information
yihong0618 and crazywoola authored Jan 13, 2025
1 parent 4e10160 commit 831459b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions api/.ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ ignore = [
"SIM108", # if-else-block-instead-of-if-exp
"SIM113", # enumerate-for-loop
"SIM117", # multiple-with-statements
"SIM210", # if-expr-with-true-false
]

[lint.per-file-ignores]
Expand Down
7 changes: 3 additions & 4 deletions api/tests/integration_tests/controllers/test_controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


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

0 comments on commit 831459b

Please sign in to comment.