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
@@ -35,10 +35,10 @@ class HistoryWithDifferentDataMappingModeRegressionAlgorithm(QCAlgorithm):
]
if any(x.size != history_results[0].size for x in history_results):
raise Exception("History results bar count did not match")
raise AssertionError("History results bar count did not match")
# Check that close prices at each time are different for different data mapping modes
for j in range(history_results[0].size):
close_prices = set(history_results[i][j] for i in range(len(history_results)))
if len(close_prices) != len(data_mapping_modes):
raise Exception("History results close prices should have been different for each data mapping mode at each time")
raise AssertionError("History results close prices should have been different for each data mapping mode at each time")