test: Add Outcome enum and replace redundant .value for DataCategory - #6356
Open
tobias-wilfert wants to merge 7 commits into
Open
test: Add Outcome enum and replace redundant .value for DataCategory#6356tobias-wilfert wants to merge 7 commits into
Outcome enum and replace redundant .value for DataCategory#6356tobias-wilfert wants to merge 7 commits into
Conversation
Member
Author
|
@cursoragent review: Please check that I didn't miss anything. |
Review SummaryI've completed a thorough review of the PR and found one issue that needed fixing. Here's what I checked and what I found: ✅ What was already correctly done:
❌ Issue found and fixed:Raw numbers in tuple assertions - In
These raw numbers made the tests harder to read and maintain. Using the enums makes it immediately clear what categories and outcomes are being tested. Verification performed:
The changes have been committed and pushed to the branch. |
Co-authored-by: Tobias Wilfert <tobias-wilfert@users.noreply.github.com>
Member
Author
|
Bruh, I wanted a review not an edit (although fair point I did miss them) but why edit if you brick the lint 🤪 |
tobias-wilfert
marked this pull request as ready for review
September 4, 2026 13:23
Dav1dde
approved these changes
Sep 4, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


The fact that we have a
DataCategoryenum but noOutcomeenum came up a while ago (see link in ticket).This now adds an
Outcomeenum so that lines like"outcome": 3, # Invalidcan be replaced with"outcome": Outcome.INVALID.I tried to generate the
Outcomeenum the same way we already generate theDataCategorybut was not happy with that. As such, I put the enum now inconst.py(Which I hope is fine since it does not seem to change a lot).While doing so I learned that
.valueis not needed forIntEnum. Since we use bothDataCategory.XXXandDataCategory.XXX.valueas a drive by improvement I removed the.values.ref: INGEST-1105