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:
@@ -53,10 +53,10 @@ class DelistingEventsAlgorithm(QCAlgorithm):
|
||||
|
||||
aaa = self.securities["AAA.1"]
|
||||
if aaa.is_delisted and aaa.is_tradable:
|
||||
raise Exception("Delisted security must NOT be tradable")
|
||||
raise AssertionError("Delisted security must NOT be tradable")
|
||||
|
||||
if not aaa.is_delisted and not aaa.is_tradable:
|
||||
raise Exception("Securities must be marked as tradable until they're delisted or removed from the universe")
|
||||
raise AssertionError("Securities must be marked as tradable until they're delisted or removed from the universe")
|
||||
|
||||
for kvp in data.delistings:
|
||||
symbol = kvp.key
|
||||
|
||||
Reference in New Issue
Block a user