diff --git a/.travis.yml b/.travis.yml index 85a43b8c..ce484ce5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ language: python sudo: false +cache: + - pip python: - nightly - 3.6 diff --git a/jupyterhub/tests/test_pages.py b/jupyterhub/tests/test_pages.py index 692c8f14..8248ff12 100644 --- a/jupyterhub/tests/test_pages.py +++ b/jupyterhub/tests/test_pages.py @@ -134,8 +134,12 @@ def test_spawn_redirect(app): path = urlparse(r.url).path assert path == ujoin(app.base_url, '/user/%s/' % name) + # stop server to ensure /user/name is handled by the Hub + r = yield api_request(app, 'users', name, 'server', method='delete', cookies=cookies) + r.raise_for_status() + # test handing of trailing slash on `/user/name` - r = yield get_page('user/' + name, app, cookies=cookies) + r = yield get_page('user/' + name, app, hub=False, cookies=cookies) r.raise_for_status() path = urlparse(r.url).path assert path == ujoin(app.base_url, '/user/%s/' % name)