Skip to content

Commit

Permalink
Add support for PySide 6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsavol committed Apr 4, 2024
1 parent 8114ed6 commit dd9e513
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ classifiers = [
]
requires-python = ">=3.8.1, <3.12"
dependencies = [
"pyside6 >= 6.5.0, != 6.5.3, < 6.6",
"pyside6 >= 6.5.0, != 6.5.3, != 6.6.3",
"jupyter-client >=6.0",
"qtconsole >=5.1",
"sqlalchemy >=1.3",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-e git+https://github.com/spine-tools/[email protected]#egg=spinedb_api
-e git+https://github.com/spine-tools/[email protected]#egg=spine_engine
-e git+https://github.com/spine-tools/spine-items.git@0.8-dev#egg=spine_items
-e git+https://github.com/spine-tools/spine-items.git@support_pyside66#egg=spine_items
-e .[dev]
14 changes: 8 additions & 6 deletions tests/widgets/test_kernel_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,23 @@


class MockSettingsWidget(QWidget):
qsettings = MagicMock()
def __init__(self):
super().__init__()
self.qsettings = MagicMock()


class TestKernelEditorBase(unittest.TestCase):
_settings_widget = None

@classmethod
def setUpClass(cls):
if not QApplication.instance():
QApplication()
cls._settings_widget = MockSettingsWidget()

@classmethod
def tearDownClass(cls):
cls._settings_widget.deleteLater()
def setUp(self):
self._settings_widget = MockSettingsWidget()

def tearDown(self):
self._settings_widget.deleteLater()

def test_is_package_installed(self):
self.assertTrue(KernelEditorBase.is_package_installed(sys.executable, "PySide6"))
Expand Down

0 comments on commit dd9e513

Please sign in to comment.