From 2991f737daaac4e0caa2a451d70c3a244119f6fa Mon Sep 17 00:00:00 2001 From: lrnselfreliance <33263708+lrnselfreliance@users.noreply.github.com> Date: Mon, 2 Nov 2026 16:31:36 -0700 Subject: [PATCH] test_get_custom_videos_directory attaches the shared context it needs (#937) Setting a config field calls ConfigFile.update(), which takes api_app.shared_ctx.config_update_lock. The test did not use async_client, so the lock only existed when another test in the same process had already attached the shared context; running first in a worker, it failed with "'SharedContext' object has no attribute 'config_update_lock'". Co-authored-by: Claude Fable 5.1 --- modules/videos/test/test_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/videos/test/test_common.py b/modules/videos/test/test_common.py index a33a95f9..596fa10c 100644 --- a/modules/videos/test/test_common.py +++ b/modules/videos/test/test_common.py @@ -606,7 +606,7 @@ def test_get_videos_directory(test_directory): assert (test_directory / 'videos').is_dir() -def test_get_custom_videos_directory(test_directory, test_wrolpi_config): +def test_get_custom_videos_directory(async_client, test_directory, test_wrolpi_config): """Custom directory can be used for videos directory.""" config = get_wrolpi_config() config.videos_destination = 'custom/directory/videos'