chore: enforce more ruff rules (#31447)

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
Maxime Beauchemin
2024-12-18 17:41:34 -08:00
committed by GitHub
parent 9da65d6bfd
commit e51b95ffa8
375 changed files with 1821 additions and 1718 deletions

View File

@@ -37,7 +37,7 @@ def test_command(mocker: MockerFixture) -> None:
with database.get_sqla_engine() as engine:
engine.dialect.do_ping.return_value = True
DatabaseDAO = mocker.patch("superset.commands.database.test_connection.DatabaseDAO")
DatabaseDAO = mocker.patch("superset.commands.database.test_connection.DatabaseDAO") # noqa: N806
DatabaseDAO.build_db_for_connection_test.return_value = database
properties = {
@@ -71,7 +71,7 @@ def test_command_with_oauth2(mocker: MockerFixture) -> None:
with database.get_sqla_engine() as engine:
engine.dialect.do_ping.side_effect = Exception("OAuth2 needed")
DatabaseDAO = mocker.patch("superset.commands.database.test_connection.DatabaseDAO")
DatabaseDAO = mocker.patch("superset.commands.database.test_connection.DatabaseDAO") # noqa: N806
DatabaseDAO.build_db_for_connection_test.return_value = database
properties = {