feat: restore source parity and harden agent runtime

This commit is contained in:
2026-06-22 11:17:26 +08:00
parent e33f08277b
commit 0793eb82d6
596 changed files with 168879 additions and 290 deletions
@@ -0,0 +1,18 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from online_dev.report_manager.engine.convert import transform
def test_snapshot_placeholder_in_text_cell():
snapshot = {
"sheets": {
"sheet1": {
"id": "sheet1",
"cellData": {
"0": {"0": {"v": "Hello #{userName}"}},
},
}
}
}
filled = transform(snapshot, {"cells": []}, {}, {"userName": "Alice"})
assert filled["sheets"]["sheet1"]["cellData"]["0"]["0"]["v"] == "Hello Alice"