Skip to content

Commit

Permalink
Merge pull request #67 from prio-data/integrate_new_vtl
Browse files Browse the repository at this point in the history
Integrate new vtl
  • Loading branch information
jimdale authored Oct 1, 2024
2 parents 9415b3d + 516d9d5 commit 7e7151b
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions viewser/commands/queryset/drift_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,18 +183,15 @@ def __self_test(self, self_test_data):

alerts = [tester.generate_alarms() for tester in testers]

nfailures = 0
failures = []
for alert in alerts:
if 'alarm' in str(alert[0]):
nfailures += 1
if 'passed' in str(alert):
failures.append(str(alert))

print(f'{nfailures}/{len(testers)} tests failed')

print()
print()
print('******END*******')
print()
print()
if len(failures) > 0:
raise RuntimeError(f'drift-detection self test failed: {failures}')
else:
print(f'Drift-detection self test passed')

def assemble_alerts(self):
"""
Expand Down

0 comments on commit 7e7151b

Please sign in to comment.