mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +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
@@ -56,7 +56,9 @@ def test_convert_dttm(
|
||||
expected_result: Optional[str],
|
||||
dttm: datetime, # noqa: F811
|
||||
) -> None:
|
||||
from superset.db_engine_specs.snowflake import SnowflakeEngineSpec as spec
|
||||
from superset.db_engine_specs.snowflake import (
|
||||
SnowflakeEngineSpec as spec, # noqa: N813
|
||||
)
|
||||
|
||||
assert_convert_dttm(spec, target_type, expected_result, dttm)
|
||||
|
||||
@@ -89,7 +91,7 @@ def test_extract_errors() -> None:
|
||||
"issue_codes": [
|
||||
{
|
||||
"code": 1029,
|
||||
"message": "Issue 1029 - The object does not exist in the given database.",
|
||||
"message": "Issue 1029 - The object does not exist in the given database.", # noqa: E501
|
||||
}
|
||||
],
|
||||
},
|
||||
@@ -100,7 +102,7 @@ def test_extract_errors() -> None:
|
||||
result = SnowflakeEngineSpec.extract_errors(Exception(msg))
|
||||
assert result == [
|
||||
SupersetError(
|
||||
message='Please check your query for syntax errors at or near "limited". Then, try running your query again.',
|
||||
message='Please check your query for syntax errors at or near "limited". Then, try running your query again.', # noqa: E501
|
||||
error_type=SupersetErrorType.SYNTAX_ERROR,
|
||||
level=ErrorLevel.ERROR,
|
||||
extra={
|
||||
|
||||
Reference in New Issue
Block a user