Renn F
33eeeddd7d
fix(video): type _override_db yield as AsyncSession | None
...
T7 widened _build_app's db_session param to AsyncSession | None (to drop the
4x # type: ignore[arg-type] on the DB-independent _build_app(None, ...) calls)
but left the inner _override_db fixture typed AsyncIterator[AsyncSession] —
so 'yield db_session' yielded AsyncSession | None into a declared AsyncSession,
and mypy failed at test_video_routes.py:177 ('Incompatible types in yield').
The DB-independent media tests pass db_session=None deliberately: their route
uses a monkeypatched task service and never awaits the session, so yielding
None is safe at runtime. Type the override's yield as AsyncSession | None to
match — no cast, no # type: ignore, no assert, runtime behavior unchanged.
The 3 media tests (3 passed) and the 19 db-gated tests (skipped locally) hold.
2026-07-06 03:05:23 +02:00
..
2026-07-03 19:24:00 +02:00
2026-06-21 20:31:42 +02:00
2026-06-14 13:43:46 +02:00
2026-07-03 01:58:38 +02:00
2026-07-04 03:10:33 +02:00
2026-05-12 06:39:18 +02:00
2026-06-14 13:43:46 +02:00
2026-06-14 13:43:46 +02:00
2026-06-24 01:15:57 +02:00
2026-05-12 04:37:01 +02:00
2026-06-14 13:43:46 +02:00
2026-07-02 05:46:01 +02:00
2026-06-11 04:36:17 +02:00
2026-06-29 05:38:21 +02:00
2026-06-29 05:38:21 +02:00
2026-07-04 07:34:40 +02:00
2026-07-01 05:18:45 +02:00
2026-06-22 12:37:46 +02:00
2026-06-22 12:37:46 +02:00
2026-06-22 12:37:46 +02:00
2026-06-22 12:37:46 +02:00
2026-06-30 08:08:35 +02:00
2026-07-04 03:10:33 +02:00
2026-07-04 03:10:33 +02:00
2026-06-14 13:43:46 +02:00
2026-07-04 03:10:33 +02:00
2026-06-14 13:43:46 +02:00
2026-06-14 13:43:46 +02:00
2026-07-03 02:55:07 +02:00
2026-07-03 02:55:07 +02:00
2026-06-10 12:04:24 +02:00
2026-07-04 06:44:40 +02:00
2026-07-02 18:28:07 +02:00
2026-06-14 13:43:46 +02:00
2026-07-04 03:10:33 +02:00
2026-06-14 13:43:46 +02:00
2026-06-21 20:31:42 +02:00
2026-06-22 12:37:46 +02:00
2026-07-03 19:24:00 +02:00
2026-07-03 19:24:00 +02:00
2026-06-14 13:43:46 +02:00
2026-06-26 01:43:08 +02:00
2026-06-14 13:43:46 +02:00
2026-07-01 01:11:34 +02:00
2026-06-24 03:35:02 +02:00
2026-06-25 01:07:05 +02:00
2026-06-19 09:15:01 +02:00
2026-07-01 05:18:45 +02:00
2026-07-01 05:18:45 +02:00
2026-07-01 05:18:45 +02:00
2026-06-23 07:26:41 +02:00
2026-07-01 05:18:45 +02:00
2026-07-04 03:10:33 +02:00
2026-07-01 05:18:45 +02:00
2026-06-29 05:38:21 +02:00
2026-06-29 05:38:21 +02:00
2026-06-03 06:35:03 +02:00
2026-06-13 08:38:31 +02:00
2026-06-24 01:15:57 +02:00
2026-06-25 21:11:36 +02:00
2026-06-25 21:11:36 +02:00
2026-06-29 05:38:21 +02:00
2026-07-03 19:24:00 +02:00
2026-06-30 08:08:35 +02:00
2026-07-01 01:11:34 +02:00
2026-06-14 13:43:46 +02:00
2026-06-03 18:54:07 +02:00
2026-06-15 04:55:16 +02:00
2026-06-19 09:15:01 +02:00
2026-06-11 04:36:17 +02:00
2026-06-14 13:43:46 +02:00
2026-06-15 20:47:41 +02:00
2026-06-29 05:38:21 +02:00
2026-06-30 08:08:35 +02:00
2026-06-14 13:43:46 +02:00
2026-06-14 13:43:46 +02:00
2026-06-14 13:43:46 +02:00
2026-06-20 09:27:29 +02:00
2026-06-03 06:35:03 +02:00
2026-06-22 15:19:50 +02:00
2026-06-30 08:08:35 +02:00
2026-06-22 12:37:46 +02:00
2026-06-30 08:08:35 +02:00
2026-07-03 00:07:55 +02:00
2026-06-14 13:43:46 +02:00
2026-06-14 13:43:46 +02:00
2026-06-14 13:43:46 +02:00
2026-06-14 13:43:46 +02:00
2026-07-01 01:11:34 +02:00
2026-06-15 20:47:41 +02:00
2026-07-03 19:24:00 +02:00
2026-07-02 21:05:50 +02:00
2026-07-04 03:10:33 +02:00
2026-06-22 15:19:50 +02:00
2026-07-01 01:11:34 +02:00
2026-06-14 13:43:46 +02:00
2026-06-21 02:48:07 +02:00
2026-07-04 03:10:33 +02:00
2026-07-04 03:10:33 +02:00
2026-07-04 03:10:33 +02:00
2026-06-14 13:43:46 +02:00
2026-06-21 02:48:07 +02:00
2026-07-02 22:02:39 +02:00
2026-07-03 01:58:38 +02:00
2026-07-01 01:11:34 +02:00
2026-07-04 03:10:33 +02:00
2026-07-05 13:37:17 +02:00
2026-06-22 01:59:41 +02:00
2026-07-06 03:05:23 +02:00
2026-07-01 01:11:34 +02:00
2026-06-24 05:58:42 +02:00
2026-07-03 19:24:00 +02:00
2026-07-03 19:24:00 +02:00