支持1d级别插针模型
This commit is contained in:
@@ -6,7 +6,7 @@ from unittest.mock import patch
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from cbpred.latest_predict import OUTPUT_COLUMNS, build_predictions
|
||||
from cbpred.latest_predict import OUTPUT_COLUMNS, build_predictions, output_columns_for_timeframe
|
||||
|
||||
|
||||
class LatestPredictTests(unittest.TestCase):
|
||||
@@ -27,6 +27,9 @@ class LatestPredictTests(unittest.TestCase):
|
||||
),
|
||||
)
|
||||
|
||||
def test_output_columns_follow_timeframe(self):
|
||||
self.assertEqual(output_columns_for_timeframe("1d")[4], "quote_volume_usdt_1d")
|
||||
|
||||
def test_batch_skips_symbols_without_training_profiles(self):
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
root = Path(directory)
|
||||
|
||||
Reference in New Issue
Block a user