-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: inherit from FilterDocumentsTestWithDataframe
in Document Stores
#1290
base: main
Are you sure you want to change the base?
Conversation
FilterDocumentsTestWithDataframe
in Document Stores
@pytest.mark.skip(reason="Filter on dataframe contents is not supported.") | ||
def test_comparison_equal_with_dataframe( | ||
self, document_store: ChromaDocumentStore, filterable_docs: List[Document] | ||
): | ||
pass | ||
|
||
@pytest.mark.skip(reason="Filter on dataframe contents is not supported.") | ||
def test_comparison_not_equal_with_dataframe( | ||
self, document_store: ChromaDocumentStore, filterable_docs: List[Document] | ||
): | ||
pass | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chroma does not support dataframes, so in this case I'm not using the new testing class.
It is no longer necessary to skip these tests: they are no longer part of the basic tests.
documents = create_filterable_docs(include_dataframe_docs=True) | ||
for i in range(len(documents)): | ||
if date := documents[i].meta.get("date"): | ||
documents[i].meta["date"] = f"{date}Z" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for Weaviate, I simplified the existing code and added a new filterable_docs_with_dataframe
fixture.
Related Issues
FilterDocumentsTestWithDataframe
in Document Stores tests after Haystack 2.9.0 release #1280 - explained in the original issueProposed Changes:
FilterDocumentsTestWithDataframe
, so that tests on dataframes will keep runningHow did you test it?
CI
Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.