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: Rework delete_documents tests #6363

Merged
merged 3 commits into from
Nov 20, 2023

Conversation

silvanocerza
Copy link
Contributor

Related Issues

Related to #6284

Proposed Changes:

Rework tests for delete_documents().

This PR also changes the expected behaviour of delete_document() to not fail when the specified to delete doesn't exist. That's much more sensible and makes the method idempotent.

How did you test it?

Ran tests locally.

Notes for the reviewer

This is part of a series of PRs, I'll update release notes at the end.
Depends on #6362

Checklist

@silvanocerza silvanocerza added the ignore-for-release-notes PRs with this flag won't be included in the release notes. label Nov 20, 2023
@silvanocerza silvanocerza requested a review from a team as a November 20, 2023 16:14
@silvanocerza silvanocerza self-assigned this Nov 20, 2023
@silvanocerza silvanocerza requested review from anakin87 and removed request for a team November 20, 2023 16:14
@github-actions github-actions bot added 2.x Related to Haystack v2.0 type:documentation Improvements on the docs labels Nov 20, 2023
Copy link
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

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

👍

Base automatically changed from rework-write-documents-test to main November 20, 2023 16:54
@silvanocerza silvanocerza merged commit d577607 into main Nov 20, 2023
20 checks passed
@silvanocerza silvanocerza deleted the rework-delete-documents-test branch November 20, 2023 16:54
vblagoje pushed a commit that referenced this pull request Nov 22, 2023
* Rework write_documents tests

* Rework delete_documents tests

* Fix linting
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