mirror of
https://github.com/microsoft/qlib.git
synced 2026-06-06 05:51:17 +08:00
fix test bug
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
# About dataset tests
|
||||
This tests is for testing the prepared dataset from Yahoo
|
||||
Tests in this folder are for testing the prepared dataset from Yahoo
|
||||
|
||||
@@ -34,7 +34,7 @@ class TestDataset(unittest.TestCase):
|
||||
print(close_desc)
|
||||
self.assertLessEqual(abs(close_desc.loc["80%"][0]), 0.1, "Close value is abnormal")
|
||||
self.assertLessEqual(abs(close_desc.loc["max"][0]), 0.2, "Close value is abnormal")
|
||||
self.assertGreaterEqual(abs(close_desc.loc["min"][0]), -0.2, "Close value is abnormal")
|
||||
self.assertGreaterEqual(close_desc.loc["min"][0], -0.2, "Close value is abnormal")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user