Skip to content

Instantly share code, notes, and snippets.

@s1ider
Created July 22, 2016 20:20
Show Gist options
  • Save s1ider/9ca5cfb20effa0700a978a3a6aa451e1 to your computer and use it in GitHub Desktop.
Save s1ider/9ca5cfb20effa0700a978a3a6aa451e1 to your computer and use it in GitHub Desktop.
def test_urls(self):
profiling_api_url = url_for('profiling_api')
urls = (
url_for('index'),
url_for('test_api'),
url_for('test_sentry'),
url_for('profiling'),
profiling_api_url,
url_for('custom_profiling'),
url_for('ean'),
url_for('ean_sig'),
)
for url in urls:
response = self.client.get(url)
try:
self.assert200(response)
except AssertionError:
if url == profiling_api_url:
continue
raise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment