def test_formula_metric_copy(config): wh = Warehouse(config=config) field = wh.get_metric("rpl") info(field.copy())
def test_formula_metric_to_config(config): wh = Warehouse(config=config) field = wh.get_metric("rpl") cfg = field.to_config() assert "type" not in cfg info(cfg)
def test_metric_copy(config): wh = Warehouse(config=config) field = wh.get_metric("revenue") info(field.copy())
def test_metric_to_config(config): wh = Warehouse(config=config) field = wh.get_metric("revenue") cfg = field.to_config() assert "formula" not in cfg info(cfg)