atst/tests/test_routes.py
2018-05-31 10:25:50 -04:00

24 lines
523 B
Python

import pytest
import tornado.web
from atst.app import make_app
@pytest.fixture
def app():
return make_app()
@pytest.mark.gen_test
def test_routes(http_client, base_url):
for path in (
'/',
'/home',
'/workspaces',
'/requests',
'/requests/new',
'/requests/new/1',
'/users',
'/reports',
'/calculator'
):
response = yield http_client.fetch(base_url + path)
assert response.code == 200