MCPcopy Create free account
hub / github.com/Open-Quant/openquant / test_adapter_shape_validation

Function test_adapter_shape_validation

python/tests/test_adapters_viz.py:92–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 )
91 assert comparison["chart"] == "grouped_bar"
92
93 cluster = openquant.viz.prepare_cluster_payload(["n1", "n2"], [None, "n1"], height=[0.0, 1.2])
94 assert cluster["chart"] == "tree"
95 assert cluster["height"] == [0.0, 1.2]
96
97
98def test_adapter_shape_validation():
99 with pytest.raises(ValueError):
100 openquant.adapters.to_polars_signal_frame(["2024-01-01 09:30:00"], [0.1, 0.2])
101 with pytest.raises(ValueError):
102 openquant.adapters.to_polars_indicator_matrix([[1, 0], [1]], bar_index=[0, 1])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected