falconry / falcon

The no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale.
https://falcon.readthedocs.io/en/stable/
Apache License 2.0
9.51k stars 937 forks source link

chore(CI): pin `pytest` + ASGI tutorial fixes #2233

Closed vytas7 closed 4 months ago

vytas7 commented 4 months ago

It seems that something breaks when using testtools.TestCase under pytest 8.2.x along the lines of https://github.com/pytest-dev/pytest/issues/12263. This PR temporarily pins pytest until the issue is resolved upstream, or we decide on how we want to move forward with this. An alternative is to drop active support for testtools altogether: #2156.

Also patched is some typing import issue in ASGI tutorial tests. The issue seems to also stem from third party packages (fakeredis) under Python 3.10 that we had hardwired in the tox env by mistake. I'll file a followup issue, because this also means that our tutorial is not fully usable on 3.10 or older.

codecov[bot] commented 4 months ago

Codecov Report

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

Project coverage is 100.00%. Comparing base (e619c39) to head (ddce076).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2233 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 63 63 Lines 6931 6931 Branches 1258 1258 ========================================= Hits 6931 6931 ```

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