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

* Add python syntax check

* Fix some python regression algorithms

* Fixing more bugs
This commit is contained in:
Martin-Molinero
2025-03-28 10:36:26 -03:00
committed by GitHub
parent 581e87809b
commit 513ced31d7
155 changed files with 667 additions and 587 deletions
@@ -32,11 +32,11 @@ class HistoryWithCustomDataSourceRegressionAlgorithm(QCAlgorithm):
fill_forward=False, extended_market_hours=False, data_normalization_mode=DataNormalizationMode.RAW).droplevel(0, axis=0)
if aapl_history.size == 0 or spy_history.size == 0:
raise Exception("At least one of the history results is empty")
raise AssertionError("At least one of the history results is empty")
# Check that both resutls contain the same data, since CustomData fetches APPL data regardless of the symbol
if not aapl_history.equals(spy_history):
raise Exception("Histories are not equal")
raise AssertionError("Histories are not equal")
class CustomData(PythonData):
'''Custom data source for the regression test algorithm, which returns AAPL equity data regardless of the symbol requested.'''