From b7faaaa575186e9736de359ce690c5a8edc1dfec Mon Sep 17 00:00:00 2001 From: Alexander Miller Date: Wed, 12 Jul 2017 17:00:26 -0400 Subject: [PATCH] fix test for init files to exclude mturk html dir (#203) --- tests/test_init.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_init.py b/tests/test_init.py index ae7b11c83de..216fd763965 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -9,13 +9,16 @@ class TestInit(unittest.TestCase): - """Make sure the package is alive.""" + """Make sure all python packages have init files.""" def test_init_everywhere(self): from parlai.core.params import ParlaiParser opt = ParlaiParser().parse_args() for root, subfolder, files in os.walk(os.path.join(opt['parlai_home'], 'parlai')): if not root.endswith('__pycache__'): + if os.path.basename(root) == 'html': + # skip mturk core's html folder--not a python module + continue assert '__init__.py' in files, 'Dir {} is missing __init__.py'.format(root)