Skip to content

Commit 4bb2e4b

Browse files
committed
assert SEA http client closure in unit tests
1 parent ef1d9fd commit 4bb2e4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/unit/test_sea_backend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def test_session_management(self, sea_client, mock_http_client, thrift_session_i
220220
path=sea_client.SESSION_PATH_WITH_ID.format("test-session-789"),
221221
data={"session_id": "test-session-789", "warehouse_id": "abc123"},
222222
)
223+
mock_http_client.close.assert_called_once()
223224

224225
# Test close_session with invalid ID type
225226
with pytest.raises(ValueError) as excinfo:

0 commit comments

Comments
 (0)