diff --git a/src/test_dashboard.py b/test/test_dashboard.py similarity index 95% rename from src/test_dashboard.py rename to test/test_dashboard.py index 7608aefeb7f89887c8bccd16360bc880b15affb6..19e42a4c23e4dc471d2fea0aead65615fc26df14 100644 --- a/src/test_dashboard.py +++ b/test/test_dashboard.py @@ -1,5 +1,9 @@ import pytest import sys +import os + +path = os.getcwd() +sys.path.insert(0,f"{path}/src") from PyQt6.QtCore import Qt, pyqtSignal, QSize from PyQt6.QtGui import QCursor, QFont, QPixmap, QMovie, QIcon diff --git a/src/test_endOfExe.py b/test/test_endOfExe.py similarity index 95% rename from src/test_endOfExe.py rename to test/test_endOfExe.py index 15d2dbebab098ef7b8a29d0fdffb2a466ef45cee..a81a111a05cc6e34e49c6e5f36b43f7f3883437d 100644 --- a/src/test_endOfExe.py +++ b/test/test_endOfExe.py @@ -3,9 +3,14 @@ import sys from PyQt6.QtWidgets import QApplication, QLabel, QWidget, QLineEdit, QPushButton, QRadioButton, QCheckBox, QMessageBox from PyQt6.QtGui import QFont, QPixmap, QCursor from PyQt6.QtCore import Qt, pyqtSignal -from endOfExercise import endOfExe +import sys +import os import pytest +path = os.getcwd() +sys.path.insert(0,f"{path}/src") +from endOfExercise import endOfExe + def test_endOfExe(qtbot): window = endOfExe() qtbot.addWidget(window) diff --git a/src/test_listlatihan2.py b/test/test_listlatihan2.py similarity index 92% rename from src/test_listlatihan2.py rename to test/test_listlatihan2.py index 1452facb3c3be89b60f3aa7bd0dbe6f5efdf1f4e..8eb8a444a5048befd82c427aa8a2061fcafa289a 100644 --- a/src/test_listlatihan2.py +++ b/test/test_listlatihan2.py @@ -1,4 +1,9 @@ from PyQt6.QtWidgets import QApplication +import sys +import os + +path = os.getcwd() +sys.path.insert(0,f"{path}/src") from listlatihan2 import listLatihan2 from PyQt6.QtCore import Qt, QSize, pyqtSignal from PyQt6.QtGui import QIcon, QPixmap, QCursor, QFont, QMovie diff --git a/src/test_plan.py b/test/test_plan.py similarity index 87% rename from src/test_plan.py rename to test/test_plan.py index 7a0e5c37820151bcd703cc7b5f3a5ea6c76a6991..497b813840d2f4930129f70075e945c5485010db 100644 --- a/src/test_plan.py +++ b/test/test_plan.py @@ -3,7 +3,11 @@ 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 +import sys +import os +path = os.getcwd() +sys.path.insert(0,f"{path}/src") from plan import plan @pytest.fixture diff --git a/src/test_plan2.py b/test/test_plan2.py similarity index 94% rename from src/test_plan2.py rename to test/test_plan2.py index 2eb32847a61f0ca75403b442e0bc435d9a14e506..96e807235c931e5720e1cd5f2d59159ee4896437 100644 --- a/src/test_plan2.py +++ b/test/test_plan2.py @@ -1,6 +1,11 @@ import pytest from PyQt6.QtWidgets import QApplication, QWidget, QLabel, QPushButton from PyQt6.QtCore import Qt, QTimer, QTime +import sys +import os + +path = os.getcwd() +sys.path.insert(0,f"{path}/src") from plan2 import plan2 @pytest.fixture diff --git a/src/test_register.py b/test/test_register.py similarity index 96% rename from src/test_register.py rename to test/test_register.py index 82b4c96faff74c94395c18619d0cd17fee42765b..4d2a5b6b5e0b93058af496cbc0f177d9b98dfb30 100644 --- a/src/test_register.py +++ b/test/test_register.py @@ -2,6 +2,11 @@ import pytest from PyQt6.QtWidgets import QApplication, QLineEdit, QRadioButton, QCheckBox, QPushButton from PyQt6.QtCore import Qt +import sys +import os + +path = os.getcwd() +sys.path.insert(0,f"{path}/src") from register import register @pytest.fixture