feat: add runnable simulator foundation

This commit is contained in:
Sergey Antropoff
2026-07-12 23:06:25 +03:00
parent 8804a3ec47
commit e11014ea26
25 changed files with 739 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
from __future__ import annotations
import json
import logging
from app.logging import JsonFormatter
def test_json_formatter_emits_structured_fields() -> None:
record = logging.LogRecord("test", logging.INFO, __file__, 1, "hello %s", ("world",), None)
record.request_id = "request-1"
payload = json.loads(JsonFormatter().format(record))
assert payload["message"] == "hello world"
assert payload["request_id"] == "request-1"
assert payload["level"] == "INFO"