update tests for Flask

This commit is contained in:
dandds
2018-08-02 13:49:39 -04:00
parent 5987748898
commit 45b47c41bf
32 changed files with 468 additions and 482 deletions

View File

@@ -1,18 +1,19 @@
import pytest
@pytest.mark.gen_test
def test_routes(http_client, base_url):
def test_routes(client):
for path in (
"/",
"/home",
"/workspaces",
"/requests",
"/requests/new",
"/requests/new/1",
"/requests/new/2",
"/users",
"/reports",
"/calculator",
):
response = yield http_client.fetch(base_url + path)
assert response.code == 200
response = client.get(path)
if response.status_code == 404:
__import__('ipdb').set_trace()
assert response.status_code == 200