Closed felix5572 closed 5 months ago
codecov/patch success (2)
dpdispatcher/dlog.py: [warning] 15-15: dpdispatcher/dlog.py#L15 Added line #L15 was not covered by tests --- dpdispatcher/dlog.py: [warning] 22-23: dpdispatcher/dlog.py#L22-L23 Added lines #L22 - L23 were not covered by tests
dpdispatcher/dlog.py (4)
`9-10`: Initialization of `cwd_logfile_path` and `dlogf` looks correct and follows best practices for defining paths. --- `12-13`: Adding the handler and logging initialization message are standard practices. Good use of formatted strings for clarity. --- `22-23`: Adding the handler for the log file in the user's home directory is a good fallback mechanism. However, this code is not covered by tests. Ensure that the log file handling in the user's home directory is covered by unit tests. ```diff + # TODO: Add unit tests for log file handling in the user's home directory ``` --- `15-17`: The handling of `PermissionError` is improved by providing more detailed warning messages. However, ensure that the log redirection to the home directory is explicitly tested. Ensure that the log file redirection is covered by unit tests. ```diff + # TODO: Add unit tests for log file redirection on PermissionError ```
Attention: Patch coverage is 57.14286%
with 3 lines
in your changes missing coverage. Please review.
Project coverage is 47.54%. Comparing base (
661882a
) to head (3725aee
). Report is 22 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
dpdispatcher/dlog.py | 57.14% | 3 Missing :warning: |
:exclamation: There is a different number of reports uploaded between BASE (661882a) and HEAD (3725aee). Click for more details.
HEAD has 5 uploads less than BASE
| Flag | BASE (661882a) | HEAD (3725aee) | |------|------|------| ||15|10|
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary by CodeRabbit