mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-08 14:05:16 +00:00
add test
This commit is contained in:
parent
6c2474b220
commit
619a885263
@ -541,6 +541,9 @@ def test_openai_invoke(mock_client: MagicMock) -> None:
|
|||||||
assert "headers" not in res.response_metadata
|
assert "headers" not in res.response_metadata
|
||||||
assert mock_client.create.called
|
assert mock_client.create.called
|
||||||
|
|
||||||
|
assert llm.root_client is None
|
||||||
|
assert llm.root_async_client is None
|
||||||
|
|
||||||
|
|
||||||
async def test_openai_ainvoke(mock_async_client: AsyncMock) -> None:
|
async def test_openai_ainvoke(mock_async_client: AsyncMock) -> None:
|
||||||
llm = ChatOpenAI()
|
llm = ChatOpenAI()
|
||||||
|
Loading…
Reference in New Issue
Block a user