fix(core): handle permission error when checking system host config and patch in tests

This commit is contained in:
Lars committed 2026-10-29 15:31:39 +01:00
1 parent 3c1589bd0c
commit 0bbc4ce440
2 files changed
+22 -12

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ class OrchestratorTests(unittest.TestCase):
self.root = Path(self.temp.name)
self.patches = [patch.object(app, 'legacy_schedules', return_value=[]),
patch.object(app, 'nas_mount_ready', return_value=True),
patch.object(app, 'load_host_config', return_value={'hostname':'test-host', 'nas_mount':'/backup', 'nas_source':'192.168.2.63:/volume1/Backup_Paperless'}),
patch.dict(os.environ, {'BACKUP_ORCHESTRATOR_CUTOVER_APPROVED':'YES'})]
for p in self.patches:
p.start()