-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(aci): add description field to detector validator #102505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| def test_update_description(self) -> None: | ||
| assert self.detector.description is None | ||
|
|
||
| data = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since i'm not quite sure of the convention for validators, is it worth testing that not providing a description doesn't make it go away, and that setting it to empty works? Probably not, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did write these tests initially, but it felt a bit excessive just for the description. These cases do work tho, I tested them locally 🙃
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #102505 +/- ##
===========================================
+ Coverage 80.82% 80.90% +0.07%
===========================================
Files 8826 8828 +2
Lines 390071 390084 +13
Branches 24799 24799
===========================================
+ Hits 315294 315579 +285
+ Misses 74426 74154 -272
Partials 351 351 |
added `description` to the detector validator so users can add create/update detector descriptions
added `description` to the detector validator so users can add create/update detector descriptions
added `description` to the detector validator so users can add create/update detector descriptions
added
descriptionto the detector validator so users can add create/update detector descriptions