Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [10:25:52 carol@cw-pro] jupyterhub on minrk-last_activity [$] $ pytest
- =============================================================== test session starts ================================================================
- platform darwin -- Python 3.6.1, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
- PyQt5 5.9 -- Qt runtime 5.9.1 -- Qt compiled 5.9.1
- rootdir: /Users/carol/code/jhub/jupyterhub, inifile:
- plugins: cov-2.5.1, qt-2.1.2, tornado-0.4.5
- collected 150 items
- jupyterhub/tests/test_api.py ......................................
- jupyterhub/tests/test_app.py .........
- jupyterhub/tests/test_auth.py ...............
- jupyterhub/tests/test_crypto.py ............
- jupyterhub/tests/test_db.py ..
- jupyterhub/tests/test_named_servers.py ...
- jupyterhub/tests/test_orm.py .........
- jupyterhub/tests/test_pages.py .......F.............
- jupyterhub/tests/test_proxy.py .............
- jupyterhub/tests/test_services.py ...
- jupyterhub/tests/test_services_auth.py .......
- jupyterhub/tests/test_singleuser.py ....
- jupyterhub/tests/test_spawner.py ...........
- jupyterhub/tests/test_traitlets.py ...
- ===================================================================== FAILURES =====================================================================
- ____________________________________________________________________ test_admin ____________________________________________________________________
- app = <jupyterhub.tests.mocking.MockHub object at 0x112154ef0>
- @pytest.mark.gen_test
- def test_admin(app):
- cookies = yield app.login_user('admin')
- r = yield get_page('admin', app, cookies=cookies)
- > r.raise_for_status()
- /Users/carol/code/jhub/jupyterhub/jupyterhub/tests/test_pages.py:89:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <Response [500]>
- def raise_for_status(self):
- """Raises stored :class:`HTTPError`, if one occurred."""
- http_error_msg = ''
- if isinstance(self.reason, bytes):
- # We attempt to decode utf-8 first because some servers
- # choose to localize their reason strings. If the string
- # isn't utf-8, we fall back to iso-8859-1 for all other
- # encodings. (See PR #3538)
- try:
- reason = self.reason.decode('utf-8')
- except UnicodeDecodeError:
- reason = self.reason.decode('iso-8859-1')
- else:
- reason = self.reason
- if 400 <= self.status_code < 500:
- http_error_msg = u'%s Client Error: %s for url: %s' % (self.status_code, reason, self.url)
- elif 500 <= self.status_code < 600:
- http_error_msg = u'%s Server Error: %s for url: %s' % (self.status_code, reason, self.url)
- if http_error_msg:
- > raise HTTPError(http_error_msg, response=self)
- E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://127.0.0.1:56327/@/space%20word/hub/admin
- /Users/carol/anaconda3/lib/python3.6/site-packages/requests/models.py:928: HTTPError
- --------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------
- 10:26:31.528 - info: [ConfigProxy] 200 GET /api/routes
- 10:26:32.168 - info: [ConfigProxy] Adding route /@/space word/user/admin -> http://127.0.0.1:56379
- 10:26:32.168 - info: [ConfigProxy] 201 POST /api/routes/@/space%20word/user/admin
- ====================================================== 1 failed, 149 passed in 72.23 seconds =======================================================
- [10:27:07 carol@cw-pro] jupyterhub on minrk-last_activity [$] $
Advertisement
Add Comment
Please, Sign In to add comment