fix(gui): rendre les profils lisibles sous windows

This commit is contained in:
2026-06-17 23:01:27 +02:00
parent ea1752d4a7
commit 19c4934de3
2 changed files with 36 additions and 31 deletions

View File

@@ -162,8 +162,8 @@ def test_profils_editor_creates_and_persists(ctk_root, tmp_path, monkeypatch):
tab.destroy()
def test_profils_panel_has_dedicated_mouse_scroll(ctk_root, tmp_path, monkeypatch):
"""Retour Dom : le formulaire Profils doit pouvoir défiler à la molette."""
def test_profils_panel_uses_outer_scroll_without_nested_scroll(ctk_root, tmp_path, monkeypatch):
"""Retour Dom : le formulaire Profils ne doit pas être coupé par un scroll imbriqué."""
import customtkinter as ctk
from gui_v6.tabs import tab_config
@@ -173,8 +173,12 @@ def test_profils_panel_has_dedicated_mouse_scroll(ctk_root, tmp_path, monkeypatc
tab._show_sub("pro")
tab.update_idletasks()
assert isinstance(tab._profile_scroll, ctk.CTkScrollableFrame)
assert hasattr(tab._profile_scroll, "_parent_canvas")
assert tab._profile_scroll is None
assert not any(isinstance(child, ctk.CTkScrollableFrame) for child in tab._panels["pro"].winfo_children())
texts = " | ".join(_all_texts(tab._panels["pro"]))
assert "Masque manuel obligatoire" in texts
assert "Désactiver le moteur VLM" in texts
assert "Règles d'anonymisation portées par ce profil" in texts
tab.destroy()