032: dead code cleanup — remove sync APIClient, _llm_http, preview_llm_client, fix retry chains
This commit is contained in:
@@ -35,15 +35,4 @@ async def test_concurrent_superset_calls():
|
||||
# #endregion test_concurrent_superset_calls
|
||||
|
||||
|
||||
# #region test_sync_superset_client_raises_in_async_context [C:2] [TYPE Function]
|
||||
# @BRIEF Verify that creating sync SupersetClient inside async context emits warning/error.
|
||||
@pytest.mark.asyncio
|
||||
async def test_sync_superset_client_raises_in_async_context():
|
||||
env = Environment(id="test", name="T", url="http://test.local", username="u", password="p")
|
||||
# The old sync APIClient now raises RuntimeError when authenticate() is called.
|
||||
from src.core.utils.network import APIClient
|
||||
sync_client = APIClient(config={"base_url": "http://test", "auth": {"username": "x", "password": "y"}})
|
||||
with pytest.raises(RuntimeError, match="deprecated"):
|
||||
sync_client.authenticate()
|
||||
# #endregion test_sync_superset_client_raises_in_async_context
|
||||
# #endregion TestSupersetClientAsync
|
||||
|
||||
Reference in New Issue
Block a user