Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license

This commit is contained in:
2026-09-05 13:26:46 +03:00
commit 03634b1ca3
11340 changed files with 3442369 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
"""Tests for gateway.whatsapp_identity alias resolution path."""
import json
from gateway.whatsapp_identity import expand_whatsapp_aliases
def test_aliases_resolve_on_modern_platforms_layout(tmp_path, monkeypatch):
tmp_home = tmp_path / "hermes-home"
mapping_dir = tmp_home / "platforms" / "whatsapp" / "session"
mapping_dir.mkdir(parents=True, exist_ok=True)
(mapping_dir / "lid-mapping-999999999999999.json").write_text(
json.dumps("15551234567@s.whatsapp.net"),
encoding="utf-8",
)
monkeypatch.setenv("HERMES_HOME", str(tmp_home))
assert expand_whatsapp_aliases("999999999999999@lid") == {
"999999999999999",
"15551234567",
}