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:
@@ -48,10 +48,10 @@ class HistoryWithDifferentDataNormalizationModeRegressionAlgorithm(QCAlgorithm):
|
||||
history_results = [x.loc[symbol].close for x in history_results]
|
||||
|
||||
if any(x.size == 0 or x.size != history_results[0].size for x in history_results):
|
||||
raise Exception(f"History results for {symbol} have different number of bars")
|
||||
raise AssertionError(f"History results for {symbol} have different number of bars")
|
||||
|
||||
# Check that, for each history result, close prices at each time are different for these securities (AAPL and ES)
|
||||
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_normalization_modes):
|
||||
raise Exception(f"History results for {symbol} have different close prices at the same time")
|
||||
raise AssertionError(f"History results for {symbol} have different close prices at the same time")
|
||||
|
||||
Reference in New Issue
Block a user