Skip to content

Commit

Permalink
fixup! CI overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
matrss committed Dec 13, 2024
1 parent 1eecdc4 commit f6dad88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mslib/msui/msui_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def add_import_plugins(self, picker_default):
except Exception as ex:
logging.error("Error on import: %s: %s", type(ex), ex)
QtWidgets.QMessageBox.critical(
self.tr(f"ERROR: Configuration\n\n{plugins,}\n\nthrows {type(ex)} error:\n{ex}"))
self.tr(f"ERROR: Configuration\n\n{plugins}\n\nthrows {type(ex)} error:\n{ex}"))
continue
try:
self.add_plugin_submenu(name, extension, imported_function, picker_type, plugin_type="Import")
Expand Down Expand Up @@ -633,7 +633,7 @@ def add_export_plugins(self, picker_default):
logging.error("Error on import: %s: %s", type(ex), ex)
QtWidgets.QMessageBox.critical(
self, self.tr("file io plugin error export plugins"),
self.tr(f"ERROR: Configuration\n\n{plugins,}\n\nthrows {type(ex)} error:\n{ex}"))
self.tr(f"ERROR: Configuration\n\n{plugins}\n\nthrows {type(ex)} error:\n{ex}"))
continue
try:
self.add_plugin_submenu(name, extension, imported_function, picker_type, plugin_type="Export")
Expand Down
2 changes: 1 addition & 1 deletion tests/_test_msui/test_wms_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def test_no_server(self, qtbot):
assert that a message box informs about server troubles
"""
with mock.patch("PyQt5.QtWidgets.QMessageBox.critical") as mock_critical:
self.query_server(qtbot, f"{self.scheme}://{self.host}:{self.port-1}")
self.query_server(qtbot, f"{self.scheme}://{self.host}:{self.port - 1}")
mock_critical.assert_called_once()

def test_no_schema(self, qtbot):
Expand Down

0 comments on commit f6dad88

Please sign in to comment.