Skip to content

Commit 5e60ea8

Browse files
committed
debezium/dbz#2128 test: skip Milvus integration tests if dependencies are missing
Signed-off-by: KMohnishM <kmohnishm@gmail.com>
1 parent 570fb52 commit 5e60ea8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/integration/test_milvus_adapter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
@pytest.fixture
1818
def milvus_adapter() -> Generator[MilvusAdapter, None, None]:
1919
"""Fixture providing a MilvusAdapter pointing to a local Milvus Lite DB."""
20+
pytest.importorskip("langchain_milvus")
21+
pytest.importorskip("pymilvus")
22+
2023
# Use a short unique DB name to satisfy Milvus Lite's < 36 characters constraint
2124
unique_db_path = f"/tmp/m_{uuid.uuid4().hex[:8]}.db"
2225

0 commit comments

Comments
 (0)