From 133bc6fa86c3972070b9a73f65ca1dce107b8717 Mon Sep 17 00:00:00 2001 From: Brian Duggan Date: Thu, 31 May 2018 10:25:23 -0400 Subject: [PATCH] Add test_routes, which tests routes --- tests/test_routes.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/test_routes.py diff --git a/tests/test_routes.py b/tests/test_routes.py new file mode 100644 index 00000000..c6f265b0 --- /dev/null +++ b/tests/test_routes.py @@ -0,0 +1,23 @@ +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