test: set SYNC_BASE_PATH to romm_test/sync for pytest

CI runs pytest without root, so the new /var/lib/romm/sync default
fails when FSSyncHandler tries to mkdir its base path at import time.
The other handlers stay writable in tests because they derive from
ROMM_BASE_PATH=romm_test (relative); pin SYNC_BASE_PATH the same way.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Georges-Antoine Assi
2026-05-17 17:25:23 -04:00
parent ea22b06502
commit 46357f0fa2

View File

@@ -4,6 +4,7 @@ asyncio_default_fixture_loop_scope = function
testpaths = tests
env =
ROMM_BASE_PATH=romm_test
SYNC_BASE_PATH=romm_test/sync
DB_HOST=127.0.0.1
DB_NAME=romm_test
DB_USER=romm_test