diff --git a/Tests/Python/PythonWrapperTests.cs b/Tests/Python/PythonWrapperTests.cs index 55288aff37fb..4c4c70779e5c 100644 --- a/Tests/Python/PythonWrapperTests.cs +++ b/Tests/Python/PythonWrapperTests.cs @@ -17,6 +17,7 @@ using NUnit.Framework; using Python.Runtime; using QuantConnect.Python; +using System.Collections.Generic; namespace QuantConnect.Tests.Python { @@ -59,6 +60,26 @@ public void DoesNotThrowWhenDerivedFromCSharpModel() } } + [Test] + public void SettlementModelPythonWrapperWorks() + { + var results = AlgorithmRunner.RunLocalBacktest("CustomSettlementModelRegressionAlgorithm", + new Dictionary(), + Language.Python, + AlgorithmStatus.Completed, + algorithmLocation: "../../../Algorithm.Python/CustomSettlementModelRegressionAlgorithm.py"); + } + + [Test] + public void BenchmarkModelPythonWrapperWorks() + { + var results = AlgorithmRunner.RunLocalBacktest("CustomBenchmarkRegressionAlgorithm", + new Dictionary { { "Total Trades", "1" } }, + Language.Python, + AlgorithmStatus.Completed, + algorithmLocation: "../../../Algorithm.Python/CustomBenchmarkRegressionAlgorithm.py"); + } + private const string FullyImplemented = @" from clr import AddReference