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
Proper input value type verification for append
method
#1254
Conversation
append
method
Codecov ReportBase: 71.22% // Head: 71.32% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #1254 +/- ##
==========================================
+ Coverage 71.22% 71.32% +0.09%
==========================================
Files 281 281
Lines 13573 13571 -2
==========================================
+ Hits 9667 9679 +12
+ Misses 3906 3892 -14
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -681,12 +681,7 @@ def validate_and_transform_to_extend_format(value): | |||
so work can be delegated to `extend` method.""" |
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.
Can we change validate_and_transform_to_extend_format
to transform_to_extend_format
?
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.
Done
@@ -270,15 +271,15 @@ def test_log_many_values(self): | |||
|
|||
def test_append_many_values_cause_error(self): |
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.
It sould not be called test_append_many_values_cause_error
, now error is caused by non-supported value.
We could test some set
, tuple
and instance of custom class here as well.
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.
Done
@normandy7, we had a bug that whenever the user was calling the |
Got it. So this was not possible before:
but should be OK after this fix? |
Not exactly.:
|
Ah, makes sense. |
Before submitting checklist