mirror of
https://github.com/apache/superset.git
synced 2026-04-10 20:06:13 +00:00
chore: enforce more ruff rules (#31447)
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9da65d6bfd
commit
e51b95ffa8
@@ -63,7 +63,10 @@ def test_sql_json_execution_context_init(query_params):
|
||||
@with_feature_flags(SQLLAB_FORCE_RUN_ASYNC=True)
|
||||
@pytest.mark.parametrize("runAsync, expected_async_flag", [(True, True), (False, True)])
|
||||
def test_sql_json_execution_context_feature_flag_false(
|
||||
mocker, query_params, runAsync, expected_async_flag
|
||||
mocker,
|
||||
query_params,
|
||||
runAsync, # noqa: N803
|
||||
expected_async_flag, # noqa: N803
|
||||
):
|
||||
query_params["runAsync"] = runAsync
|
||||
context = SqlJsonExecutionContext(query_params)
|
||||
@@ -76,7 +79,10 @@ def test_sql_json_execution_context_feature_flag_false(
|
||||
"runAsync, expected_async_flag", [(True, True), (False, False)]
|
||||
)
|
||||
def test_sql_json_execution_context_feature_flag_true(
|
||||
mocker, query_params, runAsync, expected_async_flag
|
||||
mocker,
|
||||
query_params,
|
||||
runAsync, # noqa: N803
|
||||
expected_async_flag, # noqa: N803
|
||||
):
|
||||
query_params["runAsync"] = runAsync
|
||||
context = SqlJsonExecutionContext(query_params)
|
||||
|
||||
Reference in New Issue
Block a user