Skip to content

Commit

Permalink
Update test/unit/test_connections.py
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Kuhnke <[email protected]>
  • Loading branch information
ahsimb and ckunki authored Nov 14, 2023
1 parent 043853d commit fb24bf3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/unit/test_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ def test_open_pyexasol_connection(mock_connect, conf):
@unittest.mock.patch("pyexasol.connect")
def test_open_pyexasol_connection_kwargs(mock_connect, conf):
open_pyexasol_connection(conf, connection_timeout=3, query_timeout=10)
dsn = f"{conf.EXTERNAL_HOST_NAME}:{conf.DB_PORT}"
mock_connect.assert_called_once_with(
dsn="24.134.96.2:8888",
user="me",
password="let_me_in",
dsn=dsn,
user=conf.USER,
password=conf.PASSWORD,
connection_timeout=3,
query_timeout=10,
)
Expand Down

0 comments on commit fb24bf3

Please sign in to comment.