Add python syntax check (#8651)
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Syntax Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Syntax Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
* Add python syntax check * Fix some python regression algorithms * Fixing more bugs
This commit is contained in:
@@ -33,10 +33,10 @@ class SecurityDynamicPropertyPythonClassAlgorithm(QCAlgorithm):
|
||||
|
||||
def on_warmup_finished(self) -> None:
|
||||
if type(self.spy.custom_sma) != CustomSimpleMovingAverage:
|
||||
raise Exception("spy.custom_sma is not an instance of CustomSimpleMovingAverage")
|
||||
raise AssertionError("spy.custom_sma is not an instance of CustomSimpleMovingAverage")
|
||||
|
||||
if self.spy.custom_sma.security is None:
|
||||
raise Exception("spy.custom_sma.security is None")
|
||||
raise AssertionError("spy.custom_sma.security is None")
|
||||
else:
|
||||
self.debug(f"spy.custom_sma.security.symbol: {self.spy.custom_sma.security.symbol}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user