Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:bnavigator:pyqt:dependers
spyder
spyder-pytest-qt-4.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File spyder-pytest-qt-4.patch of Package spyder
Index: spyder-5.0.5/binder/environment.yml =================================================================== --- spyder-5.0.5.orig/binder/environment.yml +++ spyder-5.0.5/binder/environment.yml @@ -65,7 +65,7 @@ dependencies: - pytest-lazy-fixture - pytest-mock - pytest-order -- pytest-qt <4.0 +- pytest-qt - pytest-xvfb - pyyaml - scipy Index: spyder-5.0.5/requirements/tests.txt =================================================================== --- spyder-5.0.5.orig/requirements/tests.txt +++ spyder-5.0.5/requirements/tests.txt @@ -13,7 +13,7 @@ pytest-cov pytest-lazy-fixture pytest-mock pytest-order -pytest-qt <4.0 +pytest-qt pyyaml scipy sympy Index: spyder-5.0.5/spyder/plugins/findinfiles/tests/test_plugin.py =================================================================== --- spyder-5.0.5.orig/spyder/plugins/findinfiles/tests/test_plugin.py +++ spyder-5.0.5/spyder/plugins/findinfiles/tests/test_plugin.py @@ -32,7 +32,7 @@ def findinfiles(qtbot): # qtbot wants to close the widget findinfiles_plugin.close = lambda: True - qtbot.addWidget(findinfiles_plugin) + qtbot.addWidget(findinfiles_plugin.get_widget()) return findinfiles_plugin Index: spyder-5.0.5/spyder/plugins/history/tests/test_plugin.py =================================================================== --- spyder-5.0.5.orig/spyder/plugins/history/tests/test_plugin.py +++ spyder-5.0.5/spyder/plugins/history/tests/test_plugin.py @@ -39,7 +39,7 @@ def historylog(qtbot, monkeypatch): """ historylog = history.HistoryLog(None, configuration=CONF) historylog.close = lambda: True - qtbot.addWidget(historylog) + qtbot.addWidget(historylog.get_widget()) historylog.get_widget().show() yield historylog historylog.on_close() Index: spyder-5.0.5/spyder/plugins/workingdirectory/tests/test_workingdirectory.py =================================================================== --- spyder-5.0.5.orig/spyder/plugins/workingdirectory/tests/test_workingdirectory.py +++ spyder-5.0.5/spyder/plugins/workingdirectory/tests/test_workingdirectory.py @@ -19,7 +19,7 @@ NEW_DIR = 'new_workingdir' @pytest.fixture -def setup_workingdirectory(qtbot, request): +def setup_workingdirectory(request): """Setup working directory plugin.""" CONF.reset_to_defaults() use_startup_wdir = request.node.get_closest_marker('use_startup_wdir') @@ -36,14 +36,13 @@ def setup_workingdirectory(qtbot, reques workingdirectory = WorkingDirectory(None, configuration=CONF) workingdirectory.close = lambda: True - qtbot.addWidget(workingdirectory) - return workingdirectory, qtbot + return workingdirectory def test_basic_initialization(setup_workingdirectory): """Test Working Directory plugin initialization.""" - workingdirectory, qtbot = setup_workingdirectory + workingdirectory = setup_workingdirectory # Assert that workingdirectory exists assert workingdirectory is not None @@ -51,7 +50,7 @@ def test_basic_initialization(setup_work def test_get_workingdir(setup_workingdirectory): """Test the method that defines the working directory at home.""" - workingdirectory, qtbot = setup_workingdirectory + workingdirectory = setup_workingdirectory # Start the working directory on the home directory act_wdir = workingdirectory.get_workdir() assert act_wdir == get_home_dir() @@ -60,7 +59,7 @@ def test_get_workingdir(setup_workingdir @pytest.mark.use_startup_wdir def test_get_workingdir_startup(setup_workingdirectory): """Test the method that defines the working directory at home.""" - workingdirectory, qtbot = setup_workingdirectory + workingdirectory = setup_workingdirectory # Start the working directory on the home directory act_wdir = workingdirectory.get_workdir() folders = osp.split(act_wdir) Index: spyder-5.0.5/setup.py =================================================================== --- spyder-5.0.5.orig/setup.py +++ spyder-5.0.5/setup.py @@ -258,7 +258,7 @@ extras_require = { 'pytest-lazy-fixture', 'pytest-mock', 'pytest-order', - 'pytest-qt<4.0', + 'pytest-qt', 'pyyaml', 'scipy', 'sympy',
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor