async def test_close_client(self, model):
        """Test that close method properly closes the client."""
        # The client should exist initially
        assert model._client is not None

        # Mock the close method
        with patch.object(model._client, 'close', new_callable=AsyncMock) as mock_close:
            await model.close()
            mock_close.assert_called_once()
Test that close method properly closes the client.
backend/tests/platform/embedding_models/test_openai_text2vec.py