This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Replace plural categories as field name with singular category#584
Merged
obulat merged 1 commit intocategory_fixfrom Mar 24, 2022
Merged
Replace plural categories as field name with singular category#584obulat merged 1 commit intocategory_fixfrom
categories as field name with singular category#584obulat merged 1 commit intocategory_fixfrom
Conversation
zackkrida
approved these changes
Mar 23, 2022
Comment on lines
+23
to
+24
| # Make sure each result is from the specified category | ||
| assert all(audio_item["category"] == category for audio_item in results) |
obulat
added a commit
that referenced
this pull request
Mar 25, 2022
) * Replace plural `categories` as field name with singular `category` Signed-off-by: Olga Bulat <obulat@gmail.com> * Replace `categories` in the search controller Signed-off-by: Olga Bulat <obulat@gmail.com> * Make `categories` work, too Signed-off-by: Olga Bulat <obulat@gmail.com> * Add test for category filtering (#584) * Update api/test/audio_integration_test.py Co-authored-by: Madison Swain-Bowden <bowdenm@spu.edu> Co-authored-by: Krystle Salazar <krystle.salazar@ciens.ucv.ve> Co-authored-by: Madison Swain-Bowden <bowdenm@spu.edu>
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes
Related to #583 by @obulat
Description
Add an automated test to complement the fix and cover the bug.
Testing Instructions
Run the following commands in the
mainbranch, note that it fails, and then try on this branch.Checklist
Update index.md).main) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin