Created
August 4, 2020 14:02
-
-
Save bplmp/f0794148b788aec72179a66b201411f5 to your computer and use it in GitHub Desktop.
Sample LookML test for views in view folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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