Commit 05c7a21
build(deps): bump pytest-asyncio from 0.21.2 to 1.3.0 (#597)
* build(deps): bump pytest-asyncio from 0.21.2 to 1.3.0
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.21.2 to 1.3.0.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](pytest-dev/pytest-asyncio@v0.21.2...v1.3.0)
---
updated-dependencies:
- dependency-name: pytest-asyncio
dependency-version: 1.3.0
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix: adapt async fixtures to pytest-asyncio 1.x
pytest-asyncio 1.0 removed support for the session-scoped 'event_loop'
fixture that this repo defined in src/tests/conftest.py. With that
fixture gone, function-scoped async fixtures get a fresh event loop
per test, while the module-level SQLAlchemy async engine is bound to
whichever loop imported it — so asyncpg raises 'Future attached to a
different loop' the moment a fixture tries to use the engine.
Migration:
- Drop the custom 'event_loop' fixture entirely; pytest-asyncio 1.x
manages the loop itself.
- Add asyncio_default_fixture_loop_scope = 'session' and
asyncio_default_test_loop_scope = 'session' under
[tool.pytest.ini_options] so all async fixtures and tests share one
loop for the whole session — same behaviour as the old custom
fixture, just expressed through the supported config knobs.
- Add an explicit loop_scope='session' on every @pytest_asyncio.fixture
for belt-and-braces (in case fixture defaults aren't applied to
decorators with explicit scope=).
Also pin the pyro-camera-api-client git dep via [tool.uv.sources] so
'uv sync --locked' doesn't re-resolve the moving 'main' branch during
Docker build.
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mateo Lostanlen <mateo@pyronear.org>1 parent 05eec31 commit 05c7a21
4 files changed
Lines changed: 21 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | | - | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
227 | 226 | | |
228 | 227 | | |
229 | 228 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 229 | + | |
238 | 230 | | |
239 | 231 | | |
240 | 232 | | |
| |||
246 | 238 | | |
247 | 239 | | |
248 | 240 | | |
249 | | - | |
| 241 | + | |
250 | 242 | | |
251 | 243 | | |
252 | 244 | | |
| |||
278 | 270 | | |
279 | 271 | | |
280 | 272 | | |
281 | | - | |
| 273 | + | |
282 | 274 | | |
283 | 275 | | |
284 | 276 | | |
| |||
302 | 294 | | |
303 | 295 | | |
304 | 296 | | |
305 | | - | |
| 297 | + | |
306 | 298 | | |
307 | 299 | | |
308 | 300 | | |
| |||
317 | 309 | | |
318 | 310 | | |
319 | 311 | | |
320 | | - | |
| 312 | + | |
321 | 313 | | |
322 | 314 | | |
323 | 315 | | |
| |||
332 | 324 | | |
333 | 325 | | |
334 | 326 | | |
335 | | - | |
| 327 | + | |
336 | 328 | | |
337 | 329 | | |
338 | 330 | | |
| |||
345 | 337 | | |
346 | 338 | | |
347 | 339 | | |
348 | | - | |
| 340 | + | |
349 | 341 | | |
350 | 342 | | |
351 | 343 | | |
| |||
358 | 350 | | |
359 | 351 | | |
360 | 352 | | |
361 | | - | |
| 353 | + | |
362 | 354 | | |
363 | 355 | | |
364 | 356 | | |
| |||
373 | 365 | | |
374 | 366 | | |
375 | 367 | | |
376 | | - | |
| 368 | + | |
377 | 369 | | |
378 | 370 | | |
379 | 371 | | |
| |||
388 | 380 | | |
389 | 381 | | |
390 | 382 | | |
391 | | - | |
| 383 | + | |
392 | 384 | | |
393 | 385 | | |
394 | 386 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments