Skip to content

Commit a582e64

Browse files
committed
test: isolate auth routing from TLS file loading
Signed-off-by: Cathleen Yan <58714163+cathleeny@users.noreply.github.com>
1 parent 00bff1a commit a582e64

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/unit/test_session.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ def test_close_uses_the_correct_session_id(self, mock_client_class):
4949
assert close_session_call_args.guid == b"\x22"
5050
assert close_session_call_args.secret == b"\x33"
5151

52+
@patch("%s.client.UnifiedHttpClient" % PACKAGE_NAME)
5253
@patch("%s.session.ThriftDatabricksClient" % PACKAGE_NAME)
53-
def test_auth_args(self, mock_client_class):
54+
def test_auth_args(self, mock_client_class, _mock_http_client):
5455
# Test that the following auth args work:
5556
# token = foo,
5657
# token = None, _tls_client_cert_file = something, _use_cert_as_auth = True

0 commit comments

Comments
 (0)