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()
