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,27 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from online_dev.report_manager.engine.polymerize import build_bind_list
def test_group_bind():
cell = {
"custom": {
"field": "category",
"polymerizationType": "2",
"groupType": "default",
}
}
rows = [
{"category": "A", "x": 1},
{"category": "B", "x": 2},
{"category": "A", "x": 3},
]
binds = build_bind_list(cell, rows)
assert len(binds) == 2
assert binds[0].value == "A"
assert len(binds[0].data_list) == 2
if __name__ == "__main__":
test_group_bind()
print("ok")