Skip hidden files in test_tags_are_set

Skip hidden files when looking for workbooks to test for tags in
the workbook directory. Many editors use swap files that are hidden, and
that will trip up this unit test.

Change-Id: I4cbbe1941a69095eb8e8a39710df5d0e5b29b0c4
This commit is contained in:
James Slagle 2017-10-17 13:28:44 -04:00
parent 49f091392e
commit b82f43429e
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ class TestWorkflowStructure(base.TestCase):
def test_tags_are_set(self):
for workbook in self.workbooks:
if workbook.startswith('.'):
continue
full_path = os.path.join(WORKBOOK_DIRECTORY, workbook)
with open(full_path) as f:
wb_yaml = yaml.load(f)