mxcube / mxcubeweb

MXCuBE-Web
http://mxcube.github.io/mxcubeweb/
GNU Lesser General Public License v3.0
25 stars 39 forks source link

Clean-up and handling of deprecation warnings for pytest tests #1491

Closed walesch-yan closed 2 weeks ago

walesch-yan commented 3 weeks ago

I revisited the pytests for this repository and saw a total of 163 warnings. This PR does some clean up and reduces the number of warnings to 7. Here is an overview of the changes in this PR:

To reduce the total warnings to 7, I will make this a draft and wait on the acceptance of mxcube/mxcubecore#1077 and mxcube/mxcubecore#1072

Quick Note on the remaining 7 warnings: Those are triggered by passlib using a deprecated api call for pkg_resources. And the flask-security-too package depends on passlib. Unfortunately we are already on the newest version for this package that still supports Python 3.8.

walesch-yan commented 2 weeks ago

bumped mxcubecore version, to include the changes mentioned in mxcube/mxcubecore#1077 and mxcube/mxcubecore#1072, to now effectively reduce number of warnings to 7