NatLibFi / Annif

Annif is a multi-algorithm automated subject indexing tool for libraries, archives and museums.
https://annif.org
Other
197 stars 41 forks source link

Fix tests and Docker rebuild due to defunct Schemathesis and pytest dependencies resolution #767

Closed juhoinkinen closed 8 months ago

juhoinkinen commented 8 months ago

Pytest 8.0.0 was released on 2014-01-17. Lately Schemathesis releases have been pinning pytest to <=8, and as Poetry favored pytest over Schemathesis in version resolution, pytest 8 and Schemathesis 3.14.2 (version just before pytest <=8 pinning) are now being installed.

The problem is that tests (and thus Docker rebuild) do not work with this ancient Schemathesis version:

...
RuntimeError: The starlette.testclient module requires the httpx package to be installed.
You can install this with:
    $ pip install httpx 

This is fixed by pinning to pytest 7.*.* in Annif.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (b7ecfd2) 99.67% compared to head (a23e18b) 99.67%. Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #767 +/- ## ======================================= Coverage 99.67% 99.67% ======================================= Files 89 89 Lines 6404 6404 ======================================= Hits 6383 6383 Misses 21 21 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 8 months ago

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Stranger6667 commented 8 months ago

FYI. I am going to add Pytest 8.0 support in Schemathesis soon