MCPcopy
hub / github.com/microsoft/qlib / test_case

Method test_case

tests/ops/test_special_ops.py:24–30  ·  view source on GitHub ↗
(instruments, queries, note=None)

Source from the content-addressed store, hash-verified

22
23 def test_case2(self):
24 def test_case(instruments, queries, note=None):
25 if note:
26 print(note)
27 print(f"checking {instruments} with queries {queries}")
28 df = D.features(instruments, queries)
29 print(df)
30 return df
31
32 test_case(["SH600519"], ["ChangeInstrument('SH000300', $close)"], "get market index close")
33 test_case(

Callers

nothing calls this directly

Calls 1

featuresMethod · 0.80

Tested by

no test coverage detected