-
Notifications
You must be signed in to change notification settings - Fork 198
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
test: User-callback #1658
test: User-callback #1658
Conversation
IMHO the The backintime/common/snapshots.py Lines 759 to 765 in 5cbffdf
Then the backintime/common/snapshots.py Line 796 in 5cbffdf
If no changes were reported by
Yes, this is the only way for BiT's
|
I updated my initial comment. Read to review. |
Regarding to your comment in PR #1269 the question is if this tests would make you sleep better? 😄 |
@@ -77,6 +77,7 @@ def test_with_pylint(self): | |||
'E1101', # no-member | |||
'W1401', # anomalous-backslash-in-string (invalid escape sequence) | |||
'E0401', # import-error | |||
'I0021', # useless-suppression |
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.
See pylint docu about I0021
. It detects useless pylint-disable comments (e.g. # pylint: disable=E0401
). I assume we will use such comments a lot in the next years. But they also become useless again very often because of heavy refactoring.
The debug output now contains minimal diagnostic information about appliation name, version, if it runs as root and the operating system. - Separated code from `collect_diagnostics()` into `collect_minimal_diagnostics()` which is then called in `common/backintime.py::startApp()` to build a debug message. - Fixed an the user-callback unit tests introduced in #1658 - Minor refactoring and minor mods in README.md and CONTRIBUTING.md. Fix #1664 Improve PR #1658
Try to close #1648 creating a system test checking the output produced by a user callback while running a backup.
This PR might not be ready to merge but is read to review.
Do run the test via: