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:
@@ -28,10 +28,10 @@ class CustomBenchmarkRegressionAlgorithm(QCAlgorithm):
|
||||
def on_data(self, slice):
|
||||
benchmark = self.benchmark.evaluate(self.time)
|
||||
if (self.time.day % 2 == 0) and (benchmark != 1):
|
||||
raise Exception(f"Benchmark should be 1, but was {benchmark}")
|
||||
raise AssertionError(f"Benchmark should be 1, but was {benchmark}")
|
||||
|
||||
if (self.time.day % 2 == 1) and (benchmark != 2):
|
||||
raise Exception(f"Benchmark should be 2, but was {benchmark}")
|
||||
raise AssertionError(f"Benchmark should be 2, but was {benchmark}")
|
||||
|
||||
class CustomBenchmark:
|
||||
def evaluate(self, time):
|
||||
|
||||
Reference in New Issue
Block a user