Add cleanup to documents in tests #1751
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Important
Adds
cleanup_documents
fixture totest_documents.py
for automatic document cleanup in tests, replacing manual cleanup code.cleanup_documents
fixture intest_documents.py
to track and delete documents created during tests.test_create_document_with_file
,test_create_document_with_raw_text
,test_create_document_with_chunks
, andtest_create_document_different_modes
to usecleanup_documents
for automatic cleanup.test_list_document_chunks
,test_search_documents_extended
,test_access_document_not_owned
,test_list_documents_with_pagination
,test_delete_by_complex_filter
,test_search_documents_no_match
,test_delete_by_workflow_metadata
,test_delete_by_classification_metadata
, andtest_delete_by_version_metadata
to usecleanup_documents
.This description was created by for dc94a6b. It will automatically update as commits are pushed.