mirror of
https://github.com/apache/superset.git
synced 2026-04-27 03:55:47 +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
@@ -53,7 +53,9 @@ def test_convert_dttm(
|
||||
expected_result: Optional[str],
|
||||
dttm: datetime, # noqa: F811
|
||||
) -> None:
|
||||
from superset.db_engine_specs.databend import DatabendEngineSpec as spec
|
||||
from superset.db_engine_specs.databend import (
|
||||
DatabendEngineSpec as spec, # noqa: N813
|
||||
)
|
||||
|
||||
assert_convert_dttm(spec, target_type, expected_result, dttm)
|
||||
|
||||
@@ -115,7 +117,9 @@ def test_get_column_spec(
|
||||
generic_type: GenericDataType,
|
||||
is_dttm: bool,
|
||||
) -> None:
|
||||
from superset.db_engine_specs.databend import DatabendConnectEngineSpec as spec
|
||||
from superset.db_engine_specs.databend import (
|
||||
DatabendConnectEngineSpec as spec, # noqa: N813
|
||||
)
|
||||
|
||||
assert_column_spec(spec, native_type, sqla_type, attrs, generic_type, is_dttm)
|
||||
|
||||
@@ -128,7 +132,9 @@ def test_get_column_spec(
|
||||
],
|
||||
)
|
||||
def test_make_label_compatible(column_name: str, expected_result: str) -> None:
|
||||
from superset.db_engine_specs.databend import DatabendConnectEngineSpec as spec
|
||||
from superset.db_engine_specs.databend import (
|
||||
DatabendConnectEngineSpec as spec, # noqa: N813
|
||||
)
|
||||
|
||||
label = spec.make_label_compatible(column_name)
|
||||
assert label == expected_result
|
||||
|
||||
Reference in New Issue
Block a user