Skip to content

Commit

Permalink
Update test_vectorstore.py
Browse files Browse the repository at this point in the history
  • Loading branch information
harupy authored Dec 5, 2024
1 parent 838cdb7 commit cf7d1c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/databricks/tests/unit_tests/test_vectorstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ def test_init_with_endpoint_name() -> None:
assert vectorsearch.index.describe() == INDEX_DETAILS[DELTA_SYNC_INDEX]


@pytest.mark.parametrize(
"index_name", [None, 123, MagicMock(spec=VectorSearchIndex)]
)
@pytest.mark.parametrize("index_name", [None, 123, MagicMock(spec=VectorSearchIndex)])
def test_init_fail_invalid_index_name(index_name) -> None:
with pytest.raises(ValueError, match="The `index_name` parameter must be"):
DatabricksVectorSearch(index_name=index_name)
Expand Down

0 comments on commit cf7d1c3

Please sign in to comment.