Fase 7: raccolta, collegamento e primo giudizio delle notizie, con il classificatore ONNX #97
@@ -40,8 +40,10 @@ public sealed class MarketDataServerTests
|
||||
StringAssert.Contains(bySource[MarketDataService.AlpacaSource].GetProperty("note").GetString(), "ALPACA_API_KEY_DEMO");
|
||||
StringAssert.Contains(bySource[MarketDataService.OkxSource].GetProperty("note").GetString(), "3 nuovi");
|
||||
Assert.AreEqual(JsonValueKind.Null, bySource[MarketDataService.OkxSource].GetProperty("lastError").ValueKind);
|
||||
// The news of Phase 7 run on the same network: their feeds and the pinned classifier model, nothing else.
|
||||
var news = Anubis.News.NewsStore.Defaults.Select(s => new Uri(s.Url).Host).Append(Anubis.News.ToneModel.Url.Host).ToHashSet();
|
||||
Assert.IsTrue(network.Urls.All(u => u.Host is "eea.okx.com" or "data.binance.vision" or "nfs.faireconomy.media" or "www.ecb.europa.eu"
|
||||
or "api.alternative.me" or "cdn.cboe.com"), string.Join(", ", network.Urls.Select(u => u.Host).Distinct()));
|
||||
or "api.alternative.me" or "cdn.cboe.com" || news.Contains(u.Host)), string.Join(", ", network.Urls.Select(u => u.Host).Distinct()));
|
||||
Assert.IsFalse(network.Urls.Any(u => u.Host.Contains("alpaca", StringComparison.Ordinal)), "no call to Alpaca without keys");
|
||||
|
||||
var report = await server.TextAsync("/api/data/quality?format=md");
|
||||
|
||||
Reference in new issue
Block a user