Unifica finestre errori con testo completo, copia ed esportazione

This commit is contained in:
2026-10-23 10:57:35 +02:00
parent fc43cbb7ec
commit 9d87b07648
24 changed files with 570 additions and 66 deletions

View File

@@ -57,8 +57,10 @@ class InventoryGuiTests(unittest.TestCase):
self.assertNotEqual(self.win.var_status.get(), self.win._t("inventory.scope"))
self.win._loaded(self.sample())
self.assertEqual([label.cget("text") for label in self.win.legend_descriptions], descriptions)
with patch("inventario.messagebox.showerror"), patch("inventario.log_exception"):
self.win._error(RuntimeError("Synthetic failure"))
error = RuntimeError("Synthetic failure")
with patch("inventario.messagebox.showerror") as show, patch("inventario.log_exception"):
self.win._error(error)
self.assertIs(show.call_args.kwargs["exception"], error)
self.assertEqual([label.cget("text") for label in self.win.legend_descriptions], descriptions)
def test_legend_wraps_to_window_width(self):