Пример #1
0
def test_formula_metric_copy(config):
    wh = Warehouse(config=config)
    field = wh.get_metric("rpl")
    info(field.copy())
Пример #2
0
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)
Пример #3
0
def test_metric_copy(config):
    wh = Warehouse(config=config)
    field = wh.get_metric("revenue")
    info(field.copy())
Пример #4
0
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)