ome / omero-dropbox

OMERO.dropbox server for watching directories
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
1 stars 6 forks source link

Add Python 3.11 to the testing matrix #22

Closed sbesson closed 7 months ago

sbesson commented 9 months ago

Companion to https://github.com/ome/omero-py/pull/385, this PR makes the minimal set of adjustements to test omero-dropbox on Python 3.11.

The mox3 library is removed in favor of the standard library mock module and installed via pytest-mock. As a bonus, most of the unit tests currently marked as broken as reactivated and should be passing on Python 3.8-3.11.

While the changes do not strictly depend on https://github.com/ome/omero-py/pull/385, both PRs will need to be deployed together in order to functionally test an OMERO.server with Dropbox in a Python 3.11 environment.

sbesson commented 9 months ago

Looks like the GitHub workflows have been deactivated due to the 60 days inactivity period.

jburel commented 9 months ago

pytest-mock this should be added to the ttests_require section in setup.py (note that ``mox3 was not there)