Skip to content

Commit f8fd455

Browse files
committed
- Update test for test-gui
1 parent b9c6efb commit f8fd455

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

evo_downloader/gui.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from PyQt6.QtWidgets import (
1+
from PyQt5.QtCore import pyqtSignal
2+
from qtpy.QtWidgets import (
23
QApplication,
34
QWidget,
45
QVBoxLayout,
@@ -10,7 +11,7 @@
1011
QProgressBar,
1112
QTextEdit,
1213
)
13-
from PyQt6.QtCore import Qt, QThread, pyqtSignal
14+
from qtpy.QtCore import QThread
1415
import sys
1516
import os
1617
from evo_downloader.downloader import Downloader

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
qt_api=pyqt5

requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ codecov
99
mypy
1010
gitchangelog
1111
mkdocs
12-
pyqt6
12+
pyqt5
1313
pytest-qt

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ def read_requirements(path):
3737
packages=find_packages(exclude=["tests", ".github"]),
3838
install_requires=read_requirements("requirements.txt"),
3939
entry_points={"console_scripts": ["edownload = evo_downloader.__main__:main"]},
40-
extras_require={"test": read_requirements("requirements-test.txt"), "full": ["pyqt6"]},
40+
extras_require={"test": read_requirements("requirements-test.txt"), "full": ["pyqt5"]},
4141
)

tests/test_gui.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import sys
21
import unittest
32

4-
from PyQt6.QtCore import Qt
5-
from PyQt6.QtWidgets import QApplication
3+
from PyQt5.QtCore import Qt
64
from evo_downloader.gui import DownloaderGUI
75

86

0 commit comments

Comments
 (0)