Daniel Brötzmann pushed to branch adw-application at gajim / gajim


Commits:
8b5584a6 by wurstsalat at 2025-04-21T13:37:48+02:00
cfix: DBMigration: Fix test

- - - - -


1 changed file:

- test/gtk/ui_test_db_migration.py


Changes:

=====================================
test/gtk/ui_test_db_migration.py
=====================================
@@ -2,6 +2,8 @@
 #
 # SPDX-License-Identifier: GPL-3.0-or-later
 
+from typing import cast
+
 import time
 
 from gi.repository import Gtk
@@ -38,8 +40,7 @@ def _on_error_clicked(_button: Gtk.Button) -> None:
 util.init_settings()
 
 window = DBMigration()
-box = window.window.get_child()
-assert isinstance(box, Gtk.Box)
+box = cast(Gtk.Box, util.get_content_widget(window))
 box.set_orientation(Gtk.Orientation.VERTICAL)
 
 button_box = Gtk.Box(spacing=12, halign=Gtk.Align.CENTER)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/8b5584a680049cca80a1fae6f228b661c921166c

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/8b5584a680049cca80a1fae6f228b661c921166c
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to