Skip to content

Commit

Permalink
fix linter (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
masci authored Jan 29, 2024
1 parent c23a41c commit 2b608af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 26 deletions.
6 changes: 2 additions & 4 deletions integrations/pinecone/tests/test_document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,10 @@ def test_write_documents(self, document_store: PineconeDocumentStore):
assert document_store.write_documents(docs) == 1

@pytest.mark.skip(reason="Pinecone only supports UPSERT operations")
def test_write_documents_duplicate_fail(self, document_store: PineconeDocumentStore):
...
def test_write_documents_duplicate_fail(self, document_store: PineconeDocumentStore): ...

@pytest.mark.skip(reason="Pinecone only supports UPSERT operations")
def test_write_documents_duplicate_skip(self, document_store: PineconeDocumentStore):
...
def test_write_documents_duplicate_skip(self, document_store: PineconeDocumentStore): ...

def test_init_fails_wo_api_key(self, monkeypatch):
api_key = None
Expand Down
33 changes: 11 additions & 22 deletions integrations/pinecone/tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,45 +38,34 @@ def assert_documents_are_equal(self, received: List[Document], expected: List[Do
assert received_doc.embedding == pytest.approx(expected_doc.embedding)

@pytest.mark.skip(reason="Pinecone does not support comparison with null values")
def test_comparison_equal_with_none(self, document_store, filterable_docs):
...
def test_comparison_equal_with_none(self, document_store, filterable_docs): ...

@pytest.mark.skip(reason="Pinecone does not support comparison with null values")
def test_comparison_not_equal_with_none(self, document_store, filterable_docs):
...
def test_comparison_not_equal_with_none(self, document_store, filterable_docs): ...

@pytest.mark.skip(reason="Pinecone does not support comparison with dates")
def test_comparison_greater_than_with_iso_date(self, document_store, filterable_docs):
...
def test_comparison_greater_than_with_iso_date(self, document_store, filterable_docs): ...

@pytest.mark.skip(reason="Pinecone does not support comparison with null values")
def test_comparison_greater_than_with_none(self, document_store, filterable_docs):
...
def test_comparison_greater_than_with_none(self, document_store, filterable_docs): ...

@pytest.mark.skip(reason="Pinecone does not support comparison with dates")
def test_comparison_greater_than_equal_with_iso_date(self, document_store, filterable_docs):
...
def test_comparison_greater_than_equal_with_iso_date(self, document_store, filterable_docs): ...

@pytest.mark.skip(reason="Pinecone does not support comparison with null values")
def test_comparison_greater_than_equal_with_none(self, document_store, filterable_docs):
...
def test_comparison_greater_than_equal_with_none(self, document_store, filterable_docs): ...

@pytest.mark.skip(reason="Pinecone does not support comparison with dates")
def test_comparison_less_than_with_iso_date(self, document_store, filterable_docs):
...
def test_comparison_less_than_with_iso_date(self, document_store, filterable_docs): ...

@pytest.mark.skip(reason="Pinecone does not support comparison with null values")
def test_comparison_less_than_with_none(self, document_store, filterable_docs):
...
def test_comparison_less_than_with_none(self, document_store, filterable_docs): ...

@pytest.mark.skip(reason="Pinecone does not support comparison with dates")
def test_comparison_less_than_equal_with_iso_date(self, document_store, filterable_docs):
...
def test_comparison_less_than_equal_with_iso_date(self, document_store, filterable_docs): ...

@pytest.mark.skip(reason="Pinecone does not support comparison with null values")
def test_comparison_less_than_equal_with_none(self, document_store, filterable_docs):
...
def test_comparison_less_than_equal_with_none(self, document_store, filterable_docs): ...

@pytest.mark.skip(reason="Pinecone does not support the 'not' operator")
def test_not_operator(self, document_store, filterable_docs):
...
def test_not_operator(self, document_store, filterable_docs): ...

0 comments on commit 2b608af

Please sign in to comment.