WIP Upgrade to Schemathesis v4#879
Conversation
|
|
|
In addition to upgrading to Schemathesis 4, this PR currently enables However, Annif 1.4 introduced But because of this, Schemathesis 4.7 (correctly, because the API schema does not define the Schemathesis should be configurable to ignore this, but I did not manage in that for now. @osma what do you think about enabling the strict validation and the custom validator? Those could and should be done in another PR than this, if we want start using those. |
91c566f to
357c414
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #879 +/- ##
==========================================
- Coverage 99.63% 99.56% -0.08%
==========================================
Files 103 103
Lines 8238 8253 +15
==========================================
+ Hits 8208 8217 +9
- Misses 30 36 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Schemathesis detected and failed unit test due to this Connexion bug which makes Connexion 3 crash, essentially with this message: I asked how to skig generating non-UTF8 content in Schemathesis discussions, because the current way of just ignoring all server errors and wrong status codes is not good. |
|
Also, I removed setting the strict_validation in Connexion. That should be another PR if it is done. (NB: Schemathesis configuration includes a setting
The setting is now set to False, but if strict validation is enabled in Connexion, |
1390e84 to
077bbf3
Compare
|
|
Schemathesis 4.11 fixed an issue regarding filtering of request body content. However, using Schemathesis 4.11 requires pytest 9, so let's postpone this PR until upgrading all dependencies. Also, the git history had again got messy, which is why I made a force push with after clean up. |



WIP