File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,13 @@ def main():
41
41
translator = QTranslator (app )
42
42
43
43
if LANGUAGE == Language .AUTO :
44
-
45
44
if translator .load (QLocale .system (), ":/translations/i18n/" ):
46
45
logger .info ("Loaded translation file." )
47
46
app .installTranslator (translator )
48
47
else :
49
48
logger .warning ("Failed to load translation file." )
50
49
51
50
elif LANGUAGE != Language .ENGLISH :
52
-
53
51
if translator .load (f":/translations/i18n/{ LANGUAGE } .qm" ):
54
52
logger .info ("Loaded translation file." )
55
53
app .installTranslator (translator )
Original file line number Diff line number Diff line change 3
3
import pytest
4
4
from PySide6 .QtWidgets import QApplication
5
5
6
+ import src .app_rc # noqa: F401
6
7
from src .controllers .main_controller import MainController
7
8
from src .models .main_model import MainModel
8
9
from src .views .main_window_view import MainWindowView
@@ -46,10 +47,10 @@ def test_setup_ui(main_window_view):
46
47
47
48
def test_setup_actions (main_window_view ):
48
49
"""Test the setupActions method."""
49
- assert main_window_view ._actionExit .text () == "& Exit"
50
- assert main_window_view ._actionOpenFile .text () == "& Open File"
51
- assert main_window_view ._actionAbout .text () == "& About"
52
- assert main_window_view ._actionReportBug .text () == "& Report a Bug"
50
+ assert main_window_view ._actionExit .text () == "Exit"
51
+ assert main_window_view ._actionOpenFile .text () == "Open File"
52
+ assert main_window_view ._actionAbout .text () == "About"
53
+ assert main_window_view ._actionReportBug .text () == "Report a Bug"
53
54
assert main_window_view ._actionPreviousPage .text () == "Previous Page"
54
55
assert main_window_view ._actionNextPage .text () == "Next Page"
55
56
assert main_window_view ._actionFirstPage .text () == "First Page"
You can’t perform that action at this time.
0 commit comments