Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme committed Sep 12, 2024
1 parent b46ed21 commit cd321ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/elasticsearch/tests/unit_tests/test_vectorstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ def dummy_custom_query(query_body: dict, query: Optional[str]) -> Dict[str, Any]
def test_agent_header(self, store: ElasticsearchStore) -> None:
agent = store.client._headers["User-Agent"]
assert (
re.match(r"^langchain-py-vs/\d+\.\d+\.\d+(?:rc\d+)?(?:\.dev\d+)?$", agent) is not None
re.match(r"^langchain-py-vs/\d+\.\d+\.\d+(?:rc\d+)?(?:\.dev\d+)?$", agent)
is not None
), f"The string '{agent}' does not match the expected pattern."

def test_similarity_search(
Expand Down

0 comments on commit cd321ed

Please sign in to comment.