Created
July 22, 2016 20:20
-
-
Save s1ider/9ca5cfb20effa0700a978a3a6aa451e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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