-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance: Expand Receipt Search Functionality and Add Unit Tests (#400)
* feat: expand receipt search functionality Enhanced the receipt fetch search query to include additional fields. Updated the search logic to filter results by `merchant_store`, `purchase_category`, and `id`. Previously, the search functionality only filtered by `name` and `date`. The updated implementation provides a more comprehensive receipt search. * chore: add unit tests for receipt search This commit introduces unit tests for the receipt search functionality performed via the receipts management dashboard. Specifically, this commit adds two `test_search_functionality` unit tests in the `views` and `api` test folders' `test_receipts.py` files to test various search queries, ensuring the receipt search feature works correctly across various scenarios, including exact matches, substring matches, case insensitivity, empty queries, and nonexistent queries. * chore: revamp receipt search test query substrings Slightly readjusted receipt search unit test query substrings to pass the `typos` grammar check.
- Loading branch information
1 parent
7f2e8e5
commit 583dfd0
Showing
3 changed files
with
167 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters