From 7c176910d7c17c1f22921a814fa60b968f991e1c Mon Sep 17 00:00:00 2001 From: Martin-Molinero Date: Wed, 1 Nov 2023 15:09:00 -0300 Subject: [PATCH] Make sure algorithmstubs initializes python (#7551) - Make sure the test algorithm stubs class initializes python before trying to set the pandas data converter which requires python --- Tests/Engine/DataFeeds/AlgorithmStub.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/Engine/DataFeeds/AlgorithmStub.cs b/Tests/Engine/DataFeeds/AlgorithmStub.cs index b971ba7d3896..ce5878cec0da 100644 --- a/Tests/Engine/DataFeeds/AlgorithmStub.cs +++ b/Tests/Engine/DataFeeds/AlgorithmStub.cs @@ -14,13 +14,13 @@ * */ +using QuantConnect.Python; using QuantConnect.Algorithm; using QuantConnect.Securities; using System.Collections.Generic; using QuantConnect.Lean.Engine.DataFeeds; using QuantConnect.Data.UniverseSelection; using QuantConnect.Tests.Common.Securities; -using QuantConnect.Interfaces; namespace QuantConnect.Tests.Engine.DataFeeds { @@ -44,6 +44,7 @@ public AlgorithmStub(bool createDataManager = true) var orderProcessor = new FakeOrderProcessor(); orderProcessor.TransactionManager = Transactions; Transactions.SetOrderProcessor(orderProcessor); + PythonInitializer.Initialize(); SetPandasConverter(); }