Skip to content

Commit

Permalink
- Update test for test-gui
Browse files Browse the repository at this point in the history
  • Loading branch information
maycuatroi committed Jul 30, 2024
1 parent b9c6efb commit f8fd455
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions evo_downloader/gui.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from PyQt6.QtWidgets import (
from PyQt5.QtCore import pyqtSignal
from qtpy.QtWidgets import (
QApplication,
QWidget,
QVBoxLayout,
Expand All @@ -10,7 +11,7 @@
QProgressBar,
QTextEdit,
)
from PyQt6.QtCore import Qt, QThread, pyqtSignal
from qtpy.QtCore import QThread
import sys
import os
from evo_downloader.downloader import Downloader
Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
qt_api=pyqt5
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ codecov
mypy
gitchangelog
mkdocs
pyqt6
pyqt5
pytest-qt
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ def read_requirements(path):
packages=find_packages(exclude=["tests", ".github"]),
install_requires=read_requirements("requirements.txt"),
entry_points={"console_scripts": ["edownload = evo_downloader.__main__:main"]},
extras_require={"test": read_requirements("requirements-test.txt"), "full": ["pyqt6"]},
extras_require={"test": read_requirements("requirements-test.txt"), "full": ["pyqt5"]},
)
4 changes: 1 addition & 3 deletions tests/test_gui.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import sys
import unittest

from PyQt6.QtCore import Qt
from PyQt6.QtWidgets import QApplication
from PyQt5.QtCore import Qt
from evo_downloader.gui import DownloaderGUI


Expand Down

0 comments on commit f8fd455

Please sign in to comment.