-
Notifications
You must be signed in to change notification settings - Fork 208
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
RTE: module 'qttools' has no attribute 'initate_translator' (encFS when prompting the user for a password) #1553
Comments
TODOs
|
I have reduced the criticality level of the bug from HIGH to MEDIUM after looking deeper into the source code because
|
This code as an example
I can not find a linter/checker who is able to detect that Any suggestions on that? I read that some IDE's (e.g. PyCharm) are able to detect such problems. But we can not integrate them into our CI or unit tests. My current IDE setup (Emacs plus some magic) is also not able to detect that. |
That's why I started to use coveralls.io and created unittests which trigger every function at least once. |
I do agree that a 100% coverage (incl. GUI code) with real unit tests should be the preferred solution here. But it is a long way. |
Standard
PyCharm just uses
|
Further discussion in #1558 |
Reported via PR #1552 (THX to @asciiprod)
Symptoms
When using
encFs
(mode "local encryption") in a BiT configand the password is not stored in a keyring (nor cached)
and the profile has an active schedule (= uses
cron
)instead of opening a message box to ask for the
encFS
password this RTE is shown:Impact
BiT
cron
jobs for suchencFS
profiles silently fail instead of asking the user for a passwordSteps to reproduce
TODO Add steps to reproduce in BiT GUI
On the console (just to test if you are affected):
Analysis
As the error says: There is a typo in the function name:
translator = qttools.initate_translator(language_code)
should be
translator = qttools.initiate_translator(language_code)
Introduced on Aug 9, 2023 with commit e52c324 ("feat: Language in config file (#1493)") into
backintime/qt/messagebox.py
Lines 23 to 27 in 92a2016
Affected release versions
Proposed fix
See PR #1552
Recommended dev process changes
GUI testing of all possible code paths (driven by user choices and configs) is nearly impossible (neither manually nor automated).
When preparing a new release a code linter or PyCharm's "Problems" tab should be used to find such problems.
The text was updated successfully, but these errors were encountered: