feat: restore source parity and harden agent runtime
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user