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:
Talley Lambert
2022-11-08 20:32:47 -05:00
committed by GitHub
parent 3ece7a27b1
commit 3c8b5bcf98
21 changed files with 377 additions and 324 deletions

View File

@@ -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

View File

@@ -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_,