mirror of
https://github.com/apache/superset.git
synced 2026-04-25 19:14:27 +00:00
chore(tests): Spelling (#25454)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Co-authored-by: Evan Rusackas <evan@preset.io> Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com>
This commit is contained in:
@@ -90,7 +90,7 @@ class TestPostgresDbEngineSpec(TestDbEngineSpec):
|
||||
"(timestamp 'epoch' + lower_case * interval '1 second'))",
|
||||
)
|
||||
|
||||
def test_time_exp_mixd_case_col_1y(self):
|
||||
def test_time_exp_mixed_case_col_1y(self):
|
||||
"""
|
||||
DB Eng Specs (postgres): Test grain expr mixed case 1 YEAR
|
||||
"""
|
||||
@@ -241,14 +241,14 @@ class TestPostgresDbEngineSpec(TestDbEngineSpec):
|
||||
]
|
||||
|
||||
msg = (
|
||||
'psql: error: could not translate host name "locahost" to address: '
|
||||
'psql: error: could not translate host name "localhost_" to address: '
|
||||
"nodename nor servname provided, or not known"
|
||||
)
|
||||
result = PostgresEngineSpec.extract_errors(Exception(msg))
|
||||
assert result == [
|
||||
SupersetError(
|
||||
error_type=SupersetErrorType.CONNECTION_INVALID_HOSTNAME_ERROR,
|
||||
message='The hostname "locahost" cannot be resolved.',
|
||||
message='The hostname "localhost_" cannot be resolved.',
|
||||
level=ErrorLevel.ERROR,
|
||||
extra={
|
||||
"engine_name": "PostgreSQL",
|
||||
@@ -421,11 +421,11 @@ psql: error: could not connect to server: Operation timed out
|
||||
)
|
||||
]
|
||||
|
||||
msg = 'syntax error at or near "fromm"'
|
||||
msg = 'syntax error at or near "from_"'
|
||||
result = PostgresEngineSpec.extract_errors(Exception(msg))
|
||||
assert result == [
|
||||
SupersetError(
|
||||
message='Please check your query for syntax errors at or near "fromm". Then, try running your query again.',
|
||||
message='Please check your query for syntax errors at or near "from_". Then, try running your query again.',
|
||||
error_type=SupersetErrorType.SYNTAX_ERROR,
|
||||
level=ErrorLevel.ERROR,
|
||||
extra={
|
||||
|
||||
Reference in New Issue
Block a user