-
Notifications
You must be signed in to change notification settings - Fork 9
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
Create control share validation #511
Conversation
f996032
to
511bfd1
Compare
Codecov Report
@@ Coverage Diff @@
## develop #511 +/- ##
===========================================
+ Coverage 75.68% 75.72% +0.03%
===========================================
Files 439 438 -1
Lines 23095 23127 +32
Branches 2314 2321 +7
===========================================
+ Hits 17480 17512 +32
- Misses 5178 5179 +1
+ Partials 437 436 -1
... and 7 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
]["hallintaosuus"] = {"value": "1/3", "extraValue": ""} | ||
answer_serializer = AnswerSerializer(data=answer_data) | ||
|
||
# test that a incorrectly formatted ssn is caught by the validator |
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.
The comment is copypasted from previous test. Maybe something like "test that control share validator returns validation error if the sum is not 1"
if round(result, 10) != 1: | ||
raise ValidationError(code="control share is not even") | ||
|
||
def control_share_finder_generator(self, entries): |
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.
Ooo, nice generator function :D
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.
One little slip with the copypasted comment, otherwise good!
511bfd1
to
ce14d83
Compare
No description provided.