feat: expand screeners and stabilize interactive feedback
This commit is contained in:
@@ -24,6 +24,9 @@ class SnapshotDatabase:
|
||||
def save_data_snapshot(self, kind, cache_key, _source, payload):
|
||||
self.aliases[(kind, cache_key)] = copy.deepcopy(payload)
|
||||
|
||||
def save_snapshot(self, _trade_date, _source, payload):
|
||||
self.snapshot = copy.deepcopy(payload)
|
||||
|
||||
def get_latest_real_snapshot(self, _trade_date, strictly_before=False):
|
||||
return copy.deepcopy(self.latest)
|
||||
|
||||
@@ -43,6 +46,7 @@ class DashboardCacheTests(unittest.TestCase):
|
||||
"sentiment_phase": "retreat",
|
||||
"sentiment_direction": "cooling",
|
||||
"sentiment_components": {},
|
||||
"sentiment_engine_version": 2,
|
||||
},
|
||||
}
|
||||
service = self.service(snapshot)
|
||||
@@ -71,6 +75,7 @@ class DashboardCacheTests(unittest.TestCase):
|
||||
"sentiment_phase": "ice",
|
||||
"sentiment_direction": "cooling",
|
||||
"sentiment_components": {},
|
||||
"sentiment_engine_version": 2,
|
||||
})
|
||||
return payload
|
||||
|
||||
|
||||
Reference in New Issue
Block a user