Skip to content

Instantly share code, notes, and snippets.

@bplmp
Created August 4, 2020 14:02
Show Gist options
  • Select an option

  • Save bplmp/f0794148b788aec72179a66b201411f5 to your computer and use it in GitHub Desktop.

Select an option

Save bplmp/f0794148b788aec72179a66b201411f5 to your computer and use it in GitHub Desktop.
Sample LookML test for views in view folder
def test_views_in_views_folder():
"""All views must be in `views` folder
"""
errors = []
for lkml_file in LKML_VIEWS:
if 'views' not in lkml_file['path_parent']:
errors.append(lkml_file['path'])
if errors:
assert False, errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment