Coverage for frappe_manager / site_manager / __init__.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-07-02 18:13 +0530

1"""Site Manager Module - Configuration and Constants""" 

2 

3import json 

4from importlib.resources import files 

5 

6__all__ = [ 

7 "VSCODE_LAUNCH_JSON", 

8 "VSCODE_TASKS_JSON", 

9 "VSCODE_SETTINGS_JSON", 

10 "PREBAKED_SITE_APPS", 

11 "NON_BASH_SUPPORTED_SERVICES", 

12] 

13 

14_vscode_templates = files("frappe_manager.templates.vscode") 

15 

16VSCODE_LAUNCH_JSON: dict = json.loads((_vscode_templates / "launch.json").read_text()) 

17VSCODE_TASKS_JSON: dict = json.loads((_vscode_templates / "tasks.json").read_text()) 

18VSCODE_SETTINGS_JSON: dict = json.loads((_vscode_templates / "settings.json").read_text()) 

19 

20PREBAKED_SITE_APPS = { 

21 "https://github.com/frappe/frappe": "version-15", 

22 "https://github.com/frappe/erpnext": "version-15", 

23 "https://github.com/frappe/hrms": "version-15", 

24} 

25 

26NON_BASH_SUPPORTED_SERVICES = ["redis-cache", "redis-queue", "adminer", "mailpit"]