#!/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"