Skip to content

Commit

Permalink
re-introduce data test successes
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanBaker committed Mar 10, 2022
1 parent 3f99c4c commit 1b0a685
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spectacles/validators/data_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ def validate(self, tests: List[DataTest]) -> List[DataTestError]:

if result["success"]:
test.passed = True
test.explore.successes.append(
{
"model": test.explore.model_name,
"explore": test.explore.name,
"metadata": {
"test_name": result["test_name"],
"lookml_url": test.lookml_url,
"explore_url": test.explore_url,
},
}
)
else:
test.passed = False
for error in result["errors"]:
Expand Down

0 comments on commit 1b0a685

Please sign in to comment.