diff --git a/src/pobsync_backend/tests/test_django_config_source.py b/src/pobsync_backend/tests/test_django_config_source.py index beb897b..ce46490 100644 --- a/src/pobsync_backend/tests/test_django_config_source.py +++ b/src/pobsync_backend/tests/test_django_config_source.py @@ -133,7 +133,8 @@ class DjangoConfigSourceTests(TestCase): ) HostConfig.objects.create(host="web-01", address="web-01.example.test") - cfg = DjangoConfigSource().effective_config_for_host("web-01") + with override_settings(POBSYNC_HOME=str(Path(tmp) / "home")): + cfg = DjangoConfigSource().effective_config_for_host("web-01") self.assertIn(f"-oIdentityFile={identity_file}", cfg["ssh"]["options"]) self.assertEqual(cfg["ssh_credential"]["storage"], "filesystem")