def test_ui_modules_import_without_creating_root_window() -> None: import ccma.app # noqa: F401 import ccma.ui.main_window # noqa: F401 import ccma.ui.member_tab # noqa: F401 import ccma.ui.splash # noqa: F401 def test_splash_position_centers_on_pointer_and_stays_on_screen() -> None: from ccma.ui.splash import centered_position assert centered_position( width=620, height=330, pointer_x=2500, pointer_y=600, screen_x=0, screen_y=0, screen_width=3840, screen_height=1080, ) == (2190, 435) assert centered_position( width=620, height=330, pointer_x=10, pointer_y=10, screen_x=0, screen_y=0, screen_width=1920, screen_height=1080, ) == (0, 0) def test_event_labels_hide_board_actor_but_keep_automatic_marker() -> None: from ccma.domain.models import Event from ccma.ui.member_tab import _event_label user_event = Event("1", "2026-01-01T00:00:00+01:00", "comment", "Kommentar", "user", "Vorstand") system_event = Event("2", "2026-01-01T00:00:00+01:00", "automatic", "Automatisch") assert _event_label(user_event) == "Kommentar" assert _event_label(system_event) == "[AUTO] Automatisch"