ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
test(ssh-import): redirect APPS_DIR to tmp so create_app step passes on CI
Juan Denis50587fe06b38
diff --git a/backend/tests/test_ssh_import_wiring.py b/backend/tests/test_ssh_import_wiring.pyindex 1371ac48..38238324 100644--- a/backend/tests/test_ssh_import_wiring.py+++ b/backend/tests/test_ssh_import_wiring.py@@ -126,6 +126,11 @@ def test_copy_files_uses_staged_docroot(app, imports_base, monkeypatch):role='admin', is_active=True))db.session.commit()+ # _step_create_app provisions the app root under paths.APPS_DIR, which+ # defaults to /var/serverkit/apps — not writable on the CI runner. Point it+ # at the tmp import base (same pattern as test_site_import.py's apps_dir).+ monkeypatch.setattr('app.paths.APPS_DIR', os.path.join(imports_base, 'apps'))+monkeypatch.setattr(GenericSshImporter, 'pull', _fake_pull)imp = SiteImportService.create('ssh', dict(SSH_SOURCE))SiteImportService.analyze(imp)