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

Method test_1_csv_data

tests/test_get_data.py:43–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 self.assertFalse(df.dropna().empty, "get qlib data failed")
42
43 def test_1_csv_data(self):
44 GetData().download_data(file_name="csv_data_cn.zip", target_dir=SOURCE_DIR)
45 stock_name = set(map(lambda x: x.name[:-4].upper(), SOURCE_DIR.glob("*.csv")))
46 self.assertEqual(len(stock_name), 85, "get csv data failed")
47
48
49if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

GetDataClass · 0.90
download_dataMethod · 0.45

Tested by

no test coverage detected