microblog.pub/tests/integration_test.py

8 lines
200 B
Python
Raw Normal View History

2018-05-20 15:34:56 -05:00
import requests
def test_ping_homepage():
"""Ensure the homepage is accessible."""
resp = requests.get('http://localhost:5005')
resp.raise_for_status()
2018-05-20 15:55:52 -05:00
assert resp.status_code == 200