Skip to content
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

refactor: Move tests for write_documents from DocumentStoreBaseTests to separate class #6334

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

silvanocerza
Copy link
Contributor

Related Issues

Relates to #6284

Proposed Changes:

Move write_documents tests from DocumentStoreBaseTests into WriteDocumentsTest class.

DocumentStoreBaseTests now inherits WriteDocumentsTest.

How did you test it?

I ran tests locally.

Notes for the reviewer

Depends on #6332.

This is part of a series of PRs to split tests into different classes. I'll add release notes at the end.

Checklist

@silvanocerza silvanocerza added the ignore-for-release-notes PRs with this flag won't be included in the release notes. label Nov 17, 2023
@silvanocerza silvanocerza self-assigned this Nov 17, 2023
@silvanocerza silvanocerza requested a review from a team as a code owner November 17, 2023 16:20
@silvanocerza silvanocerza requested review from vblagoje and masci and removed request for a team and vblagoje November 17, 2023 16:20
@github-actions github-actions bot added 2.x Related to Haystack v2.0 type:documentation Improvements on the docs labels Nov 17, 2023
with pytest.raises(ValueError):
docstore.write_documents("not a list actually") # type: ignore


class DocumentStoreBaseTests(CountDocumentsTest):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is different from the PR description

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed a fix a the same identical time you commented. 😅

Base automatically changed from move-count-documents-tests to main November 17, 2023 17:00
@silvanocerza silvanocerza merged commit 53b77dd into main Nov 17, 2023
20 checks passed
@silvanocerza silvanocerza deleted the move-write-documents-tests branch November 17, 2023 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Related to Haystack v2.0 ignore-for-release-notes PRs with this flag won't be included in the release notes. type:documentation Improvements on the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants