test_signup: Fix test failures due to emacs backup files.

This commit is contained in:
Tim Abbott 2017-01-30 11:54:40 -08:00
parent 87337e0d1f
commit d7dd158197
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ class PublicURLTest(ZulipTestCase):
# Add all files in 'templates/zerver/help' directory (except for 'main.html' and
# 'index.md') to `get_urls['200']` list.
for doc in os.listdir('./templates/zerver/help'):
if doc.startswith(".") or '~' in doc or '#' in doc:
continue
if doc not in {'main.html', 'index.md', 'include'}:
get_urls[200].append('/help/' + os.path.splitext(doc)[0]) # Strip the extension.