Skip to content

Commit

Permalink
Make sure algorithmstubs initializes python (#7551)
Browse files Browse the repository at this point in the history
- Make sure the test algorithm stubs class initializes python before
  trying to set the pandas data converter which requires python
  • Loading branch information
Martin-Molinero authored Nov 1, 2023
1 parent 4237d40 commit 7c17691
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/Engine/DataFeeds/AlgorithmStub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -44,6 +44,7 @@ public AlgorithmStub(bool createDataManager = true)
var orderProcessor = new FakeOrderProcessor();
orderProcessor.TransactionManager = Transactions;
Transactions.SetOrderProcessor(orderProcessor);
PythonInitializer.Initialize();
SetPandasConverter();
}

Expand Down

0 comments on commit 7c17691

Please sign in to comment.