Fix coverage to not include migrations

This commit is contained in:
Tom Christie 2012-09-28 16:01:02 +01:00
parent 9f71f8e618
commit c2bbe628e6

View File

@ -46,7 +46,7 @@ def main():
for (path, dirs, files) in os.walk(project_dir): for (path, dirs, files) in os.walk(project_dir):
# Drop tests and runtests directories from the test coverage report # Drop tests and runtests directories from the test coverage report
if os.path.basename(path) == 'tests' or os.path.basename(path) == 'runtests': if os.path.basename(path) in ['tests', 'runtests', 'migrations']:
continue continue
# Drop the compat module from coverage, since we're not interested in the coverage # Drop the compat module from coverage, since we're not interested in the coverage