S1005403_RisCC/tests/gui/test_ppi_display.py

14 lines
336 B
Python

import pytest
import tkinter as tk
from target_simulator.gui.ppi_display import PPIDisplay
def test_ppi_display_init():
try:
root = tk.Tk()
except tk.TclError:
pytest.skip("Tkinter cannot be initialized in this environment.")
display = PPIDisplay(root)
assert display.master == root
root.destroy()