from __future__ import annotations

import tkinter as tk
import unittest

from safety_judge.ui import SafetyJudgeApp


class UISmokeTest(unittest.TestCase):
    def test_profile_chooser_builds(self) -> None:
        root = tk.Tk()
        root.withdraw()
        app = SafetyJudgeApp(root)
        root.update_idletasks()
        self.assertEqual(root.title(), "Safety Judge V13")
        app.quit_app()


if __name__ == "__main__":
    unittest.main()
