05/23 Add Pick 5, Millionair Balls, etc

This commit is contained in:
2026-05-23 17:04:40 -04:00
parent b5e03fbf10
commit c792d9878e
10 changed files with 302 additions and 50 deletions
+12 -3
View File
@@ -138,7 +138,10 @@ def test_dashboard_instantiates(tmp_db):
import tkinter as tk
from ui.dashboard import DashboardScreen
root = tk.Tk(); root.withdraw()
try:
root = tk.Tk(); root.withdraw()
except Exception:
pytest.skip("Tkinter init failed")
try:
screen = DashboardScreen(root)
screen.refresh()
@@ -155,7 +158,10 @@ def test_dashboard_refresh_with_data(tmp_db):
pb = get_game_by_name("Powerball")
insert_draw(pb["id"], "2024-01-01", [1, 13, 36, 61, 69], bonus=7, multiplier="2x")
root = tk.Tk(); root.withdraw()
try:
root = tk.Tk(); root.withdraw()
except Exception:
pytest.skip("Tkinter init failed")
try:
screen = DashboardScreen(root)
screen.refresh()
@@ -169,7 +175,10 @@ def test_dashboard_refresh_empty_db(tmp_db):
import tkinter as tk
from ui.dashboard import DashboardScreen
root = tk.Tk(); root.withdraw()
try:
root = tk.Tk(); root.withdraw()
except Exception:
pytest.skip("Tkinter init failed")
try:
screen = DashboardScreen(root)
screen.refresh()