otko/tests/gui/test_main_window.py

22 lines
521 B
Python
Raw Normal View History

2026-09-08 02:12:15 -04:00
"""Smoke test for the MainWindow.
Marked as ``gui`` so it can be deselected on environments without a display.
"""
from __future__ import annotations
import pytest
pytest.importorskip("PySide6")
pytest.importorskip("pyvistaqt")
@pytest.mark.gui
def test_main_window_opens(qtbot) -> None: # type: ignore[no-untyped-def]
from otko.views.main_window import MainWindow
window = MainWindow()
qtbot.addWidget(window)
window.show()
assert window.isVisible()
assert window.windowTitle() == "OTKO"