Fix string formatting in "dummy handlers"#2361
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2361 +/- ##
=======================================
Coverage 63.17% 63.17%
=======================================
Files 132 132
Lines 17187 17187
=======================================
Hits 10858 10858
Misses 6329 6329 📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
bsipocz
left a comment
There was a problem hiding this comment.
I think we don't need the return values, otherwise it look all very nice.
| (str(key), method_name)) | ||
| return False | ||
| raise ValueError(f"Parameter '{key}' not found in method '{method_name}'") | ||
| return True |
There was a problem hiding this comment.
Does this return value have any effect? As far as I see there are no asserts for the tests, so unless an exception is raised anywhere the tests using check_call would pass.
There was a problem hiding this comment.
I noticed that as well but I left them just in case. But since you brought it up I'll remove them. I double checked the code and they're never called expecting them to return anything.
fba1021 to
f7230b9
Compare
|
Thanks @lvalerom! |
Some of the strings in the "dummy handlers" were not properly formatted, as seen below:
As discussed here this PR fixes the string formatting of these modules and changes said formatting to f-strings: