Files
zjjk/tools/send_test_alert.py

21 lines
421 B
Python
Raw Normal View History

2026-03-20 21:47:30 +08:00
from __future__ import annotations
import json
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
sys.path.insert(0, str(ROOT / "backend"))
from app.services.alert_service import alert_service # noqa: E402
def main() -> None:
result = alert_service.send_close_snapshot_test_alert()
print(json.dumps(result, ensure_ascii=False, indent=2))
if __name__ == "__main__":
main()