# tests/test_notify.py import unittest from engine.lib.notify import build_text class TestNotify(unittest.TestCase): def test_instance_uses_apex_prefix(self): t = build_text("Title", "msg", "daedalus", "INFO", "2026-07-04 00:00:00 MSK") self.assertIn("com.ermnvldmr.apex.daedalus", t) self.assertIn("#instance_com_ermnvldmr_apex_daedalus", t) def test_html_escaped_and_truncated(self): t = build_text("A & B", "