You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon merging #4211, there will be some code that is not tested.
There should be test for following functionality:
search/documents.py
Test that objects returned from PageDocument.get_queryset are indexed only.
get_queryset method is overwritten to exclude the files which does not need to be indexed. Need to add test that its working perfectly while adding, updating and deleting the HTMLFile object.
Test faceted_search method for both PageDocument and ProjectDocument
search/faceted_search.py
Test both FileSearch and ProjectSearch
projects/models.py
Test HTMLFile proxy model returns only .html file objects.
Test json_file_path, processed_json property and get_processed_json function
projects/tasks.py
Need to have some test for _manage_imported_files function to check that HTMLFile objects are creating and deleting successfully and upon deletation, the data is removed from the index.
Test HTMLFile and ImportedFile are created separately. (Its very much important for search index as only HTMLFile signal is catched to reindex the file.
search/tests/utils.py
Test get_search_query_from_project_file is returning correct query
Need to add any other tests that are useful.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Upon merging #4211, there will be some code that is not tested.
There should be test for following functionality:
search/documents.py
PageDocument.get_queryset
are indexed only.get_queryset
method is overwritten to exclude the files which does not need to be indexed. Need to add test that its working perfectly while adding, updating and deleting theHTMLFile
object.faceted_search
method for bothPageDocument
andProjectDocument
search/faceted_search.py
FileSearch
andProjectSearch
projects/models.py
HTMLFile
proxy model returns only.html
file objects.json_file_path
,processed_json
property andget_processed_json
functionprojects/tasks.py
_manage_imported_files
function to check thatHTMLFile
objects are creating and deleting successfully and upon deletation, the data is removed from the index.HTMLFile
andImportedFile
are created separately. (Its very much important for search index as onlyHTMLFile
signal is catched to reindex the file.search/tests/utils.py
get_search_query_from_project_file
is returning correct queryNeed to add any other tests that are useful.
The text was updated successfully, but these errors were encountered: