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:
@@ -43,10 +43,10 @@ class BasicTemplateIndexOptionsAlgorithm(QCAlgorithm):
|
||||
|
||||
def on_end_of_algorithm(self) -> None:
|
||||
if self.portfolio[self.spx].total_sale_volume > 0:
|
||||
raise Exception("Index is not tradable.")
|
||||
raise AssertionError("Index is not tradable.")
|
||||
|
||||
if self.portfolio.total_sale_volume == 0:
|
||||
raise Exception("Trade volume should be greater than zero by the end of this algorithm")
|
||||
raise AssertionError("Trade volume should be greater than zero by the end of this algorithm")
|
||||
|
||||
def invert_option(self, symbol: Symbol) -> Symbol:
|
||||
return Symbol.create_option(
|
||||
|
||||
Reference in New Issue
Block a user