mirror of
https://github.com/pyapp-kit/superqt.git
synced 2026-01-05 11:50:51 +01:00
test: add qtbot to test to fix windows segfault (#165)
* test: fix windows test * test on windows * try ubuntu * remove ubuntu
This commit is contained in:
6
.github/workflows/test_and_deploy.yml
vendored
6
.github/workflows/test_and_deploy.yml
vendored
@@ -36,6 +36,12 @@ jobs:
|
||||
- python-version: "3.11"
|
||||
platform: macos-latest
|
||||
backend: pyside6
|
||||
- python-version: "3.10"
|
||||
platform: windows-latest
|
||||
backend: pyside6
|
||||
- python-version: "3.11"
|
||||
platform: windows-latest
|
||||
backend: pyside6
|
||||
|
||||
# python 3.7
|
||||
- python-version: 3.7
|
||||
|
||||
@@ -67,9 +67,10 @@ def test_labeled_signals(cls, qtbot):
|
||||
@pytest.mark.parametrize(
|
||||
"cls", [QLabeledDoubleSlider, QLabeledRangeSlider, QLabeledSlider]
|
||||
)
|
||||
def test_editing_finished_signal(cls):
|
||||
slider = cls()
|
||||
def test_editing_finished_signal(cls, qtbot):
|
||||
mock = Mock()
|
||||
slider = cls()
|
||||
qtbot.addWidget(slider)
|
||||
slider.editingFinished.connect(mock)
|
||||
if hasattr(slider, "_label"):
|
||||
slider._label.editingFinished.emit()
|
||||
|
||||
Reference in New Issue
Block a user