diff --git a/src/test_plan.py b/src/test_plan.py new file mode 100644 index 0000000000000000000000000000000000000000..7a0e5c37820151bcd703cc7b5f3a5ea6c76a6991 --- /dev/null +++ b/src/test_plan.py @@ -0,0 +1,19 @@ +import pytest + +from PyQt6.QtCore import Qt, pyqtSignal +from PyQt6.QtGui import QPixmap, QCursor, QFont, QIcon +from PyQt6.QtWidgets import QApplication, QWidget, QLabel, QHBoxLayout, QVBoxLayout, QPushButton, QScrollArea + +from plan import plan + +@pytest.fixture +def app(): + app = plan() + yield app + +def test_window(app,qtbot): + # cek window title + assert app.windowTitle() == "FitU - Plan" + assert app.height() == 720 + assert app.width() == 1280 + assert len(app.findChildren(QPushButton)) == 10 \ No newline at end of file