Materials-Consortia / optimade-gateway

A gateway for querying OPTIMADE APIs.
https://www.optimade.org/optimade-gateway
MIT License
5 stars 1 forks source link

Update to pytest-asyncio v0.23 #490

Closed CasperWA closed 7 months ago

CasperWA commented 7 months ago

Fixes #447

This will implement a pytest session-scoped asyncio-loop using the pytest_configuration_modifyitems() function as described in the pytest-asyncio documentation to ensure we have a session-scoped event loop.

The behavior of overwriting the event_loop fixture is deprecated in pytest-asyncio from v0.23.

codecov[bot] commented 7 months ago

Codecov Report

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

Project coverage is 88.21%. Comparing base (6c89db3) to head (d6afd96).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #490 +/- ## ========================================== - Coverage 88.47% 88.21% -0.27% ========================================== Files 39 39 Lines 1232 1230 -2 ========================================== - Hits 1090 1085 -5 - Misses 142 145 +3 ``` | [Flag](https://app.codecov.io/gh/Materials-Consortia/optimade-gateway/pull/490/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Materials-Consortia) | Coverage Δ | | |---|---|---| | [mongodb](https://app.codecov.io/gh/Materials-Consortia/optimade-gateway/pull/490/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Materials-Consortia) | `88.13% <100.00%> (-0.11%)` | :arrow_down: | | [mongomock](https://app.codecov.io/gh/Materials-Consortia/optimade-gateway/pull/490/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Materials-Consortia) | `88.21% <100.00%> (-0.27%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Materials-Consortia#carryforward-flags-in-the-pull-request-comment) to find out more.

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