05/23 Add Pick 5, Millionair Balls, etc
This commit is contained in:
+12
-3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user