Skip to content

Commit 8b2e99e

Browse files
[Bug]Fix Model Deployment Tests (#30)
* additional test dependencies for md * remove non-exist method patching
1 parent e6f11f4 commit 8b2e99e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

libs/oci/pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ pytest-cov = "^4.1.0"
2727
syrupy = "^4.0.2"
2828
pytest-asyncio = "^0.23.2"
2929
pytest-watcher = "^0.3.4"
30-
langchain-tests = "0.3.12"
31-
langchain = "^0.3.7"
30+
langchain-tests = "^0.3.12"
3231
pytest-socket = "^0.7.0"
32+
pytest-mock = "^3.15.0"
33+
responses = "^0.25.8"
3334

3435

3536
[tool.poetry.group.codespell]

libs/oci/tests/unit_tests/llms/test_oci_model_deployment_endpoint.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ def test_generate_tgi(*args: Any) -> None:
154154
@mock.patch(
155155
"ads.common.auth.default_signer", return_value=dict(signer=mock.MagicMock())
156156
)
157-
@mock.patch(
158-
"langchain_oci.utilities.requests.Requests.apost",
159-
mock.MagicMock(),
160-
)
161157
async def test_stream_async(*args: Any) -> None:
162158
"""Tests async streaming."""
163159
llm = OCIModelDeploymentTGI(

0 commit comments

Comments
 (0)