Skip to content

Commit

Permalink
Add defaults to validate
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtemple committed Jun 16, 2020
1 parent 21ca811 commit f045708
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spectacles/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ def validate(
selectors: Optional[List[str]] = None,
exclusions: Optional[List[str]] = None,
) -> Dict[str, Any]:
# Assign default values for selectors and exclusions
if selectors is None:
selectors = ["*/*"]
if exclusions is None:
exclusions = []

tests = self.client.all_lookml_tests(self.project)

# The error objects don't contain the name of the explore
Expand Down

0 comments on commit f045708

Please sign in to comment.