22 lines
508 B
Python
22 lines
508 B
Python
import pytest
|
|
import tkinter as tk
|
|
from target_simulator.gui.scenario_controls_frame import ScenarioControlsFrame
|
|
|
|
|
|
class DummyMainView:
|
|
pass
|
|
|
|
|
|
def test_scenario_controls_frame_init():
|
|
root = tk.Tk()
|
|
frame = ScenarioControlsFrame(
|
|
root,
|
|
main_view=DummyMainView(),
|
|
load_scenario_command=lambda: None,
|
|
save_as_command=lambda: None,
|
|
delete_command=lambda: None,
|
|
new_scenario_command=lambda: None,
|
|
)
|
|
assert frame is not None
|
|
root.destroy()
|