mirror of
https://github.com/pyapp-kit/superqt.git
synced 2025-12-15 18:50:05 +01:00
refactor: update pyproject and ci, add py3.11 test (#132)
* refactor: reorg repo * fix: include pyi in manifest * remove extra * changes * why no trigger * fix needs * include python 3.11 * remove cache * add back license * bump versions * fix py37 * fix napari test * remove timeout * fix py37 test * test: fix py311 tests * change windows test
This commit is contained in:
@@ -28,9 +28,9 @@ def test_message_handler_with_logger(caplog):
|
||||
QtCore.qCritical("critical")
|
||||
|
||||
assert len(caplog.records) == 3
|
||||
caplog.records[0].message == "debug"
|
||||
caplog.records[0].levelno == logging.DEBUG
|
||||
caplog.records[1].message == "warning"
|
||||
caplog.records[1].levelno == logging.WARNING
|
||||
caplog.records[2].message == "critical"
|
||||
caplog.records[2].levelno == logging.CRITICAL
|
||||
assert caplog.records[0].message == "debug"
|
||||
assert caplog.records[0].levelno == logging.DEBUG
|
||||
assert caplog.records[1].message == "warning"
|
||||
assert caplog.records[1].levelno == logging.WARNING
|
||||
assert caplog.records[2].message == "critical"
|
||||
assert caplog.records[2].levelno == logging.CRITICAL
|
||||
|
||||
@@ -15,8 +15,10 @@ skip_on_linux_qt6 = pytest.mark.skipif(
|
||||
reason="hover events not working on linux pyqt6",
|
||||
)
|
||||
|
||||
_PointF = QPointF()
|
||||
|
||||
def _mouse_event(pos=QPointF(), type_=QEvent.Type.MouseMove):
|
||||
|
||||
def _mouse_event(pos=_PointF, type_=QEvent.Type.MouseMove):
|
||||
"""Create a mouse event of `type_` at `pos`."""
|
||||
return QMouseEvent(
|
||||
type_,
|
||||
|
||||
Reference in New Issue
Block a user