Skip to content

Commit

Permalink
Fixing test I didn't touch
Browse files Browse the repository at this point in the history
  • Loading branch information
craig-rueda committed Oct 2, 2023
1 parent d040d2a commit 3f40ab2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit_tests/db_engine_specs/test_clickhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# under the License.

from datetime import datetime
from http.client import HTTPConnection
from typing import Any, Optional
from unittest.mock import Mock

Expand Down Expand Up @@ -63,7 +64,7 @@ def test_execute_connection_error() -> None:

cursor = Mock()
cursor.execute.side_effect = NewConnectionError(
"Dummypool", "Exception with sensitive data"
HTTPConnection("localhost", 8080), "Exception with sensitive data"
)
with pytest.raises(SupersetDBAPIDatabaseError) as ex:
ClickHouseEngineSpec.execute(cursor, "SELECT col1 from table1")
Expand Down

0 comments on commit 3f40ab2

Please sign in to comment.