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:
@@ -51,9 +51,9 @@ class IndustryStandardSecurityIdentifiersRegressionAlgorithm(QCAlgorithm):
|
||||
|
||||
def check_symbol_representation(self, symbol: str, standard: str) -> None:
|
||||
if not symbol:
|
||||
raise Exception(f"{standard} symbol representation is null or empty")
|
||||
raise AssertionError(f"{standard} symbol representation is null or empty")
|
||||
|
||||
def check_ap_is_symbol_representations(self, symbol_api_symbol: str, algorithm_api_symbol: str, standard: str) -> None:
|
||||
if symbol_api_symbol != algorithm_api_symbol:
|
||||
raise Exception(f"Symbol API {standard} symbol representation ({symbol_api_symbol}) does not match "
|
||||
raise AssertionError(f"Symbol API {standard} symbol representation ({symbol_api_symbol}) does not match "
|
||||
f"QCAlgorithm API {standard} symbol representation ({algorithm_api_symbol})")
|
||||
|
||||
Reference in New Issue
Block a user