willingc

jhub-test_admin

Aug 5th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. [10:25:52 carol@cw-pro] jupyterhub on minrk-last_activity [$] $ pytest
  2. =============================================================== test session starts ================================================================
  3. platform darwin -- Python 3.6.1, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
  4. PyQt5 5.9 -- Qt runtime 5.9.1 -- Qt compiled 5.9.1
  5. rootdir: /Users/carol/code/jhub/jupyterhub, inifile:
  6. plugins: cov-2.5.1, qt-2.1.2, tornado-0.4.5
  7. collected 150 items
  8.  
  9. jupyterhub/tests/test_api.py ......................................
  10. jupyterhub/tests/test_app.py .........
  11. jupyterhub/tests/test_auth.py ...............
  12. jupyterhub/tests/test_crypto.py ............
  13. jupyterhub/tests/test_db.py ..
  14. jupyterhub/tests/test_named_servers.py ...
  15. jupyterhub/tests/test_orm.py .........
  16. jupyterhub/tests/test_pages.py .......F.............
  17. jupyterhub/tests/test_proxy.py .............
  18. jupyterhub/tests/test_services.py ...
  19. jupyterhub/tests/test_services_auth.py .......
  20. jupyterhub/tests/test_singleuser.py ....
  21. jupyterhub/tests/test_spawner.py ...........
  22. jupyterhub/tests/test_traitlets.py ...
  23.  
  24. ===================================================================== FAILURES =====================================================================
  25. ____________________________________________________________________ test_admin ____________________________________________________________________
  26.  
  27. app = <jupyterhub.tests.mocking.MockHub object at 0x112154ef0>
  28.  
  29. @pytest.mark.gen_test
  30. def test_admin(app):
  31. cookies = yield app.login_user('admin')
  32. r = yield get_page('admin', app, cookies=cookies)
  33. > r.raise_for_status()
  34.  
  35. /Users/carol/code/jhub/jupyterhub/jupyterhub/tests/test_pages.py:89:
  36. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  37.  
  38. self = <Response [500]>
  39.  
  40. def raise_for_status(self):
  41. """Raises stored :class:`HTTPError`, if one occurred."""
  42.  
  43. http_error_msg = ''
  44. if isinstance(self.reason, bytes):
  45. # We attempt to decode utf-8 first because some servers
  46. # choose to localize their reason strings. If the string
  47. # isn't utf-8, we fall back to iso-8859-1 for all other
  48. # encodings. (See PR #3538)
  49. try:
  50. reason = self.reason.decode('utf-8')
  51. except UnicodeDecodeError:
  52. reason = self.reason.decode('iso-8859-1')
  53. else:
  54. reason = self.reason
  55.  
  56. if 400 <= self.status_code < 500:
  57. http_error_msg = u'%s Client Error: %s for url: %s' % (self.status_code, reason, self.url)
  58.  
  59. elif 500 <= self.status_code < 600:
  60. http_error_msg = u'%s Server Error: %s for url: %s' % (self.status_code, reason, self.url)
  61.  
  62. if http_error_msg:
  63. > raise HTTPError(http_error_msg, response=self)
  64. E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://127.0.0.1:56327/@/space%20word/hub/admin
  65.  
  66. /Users/carol/anaconda3/lib/python3.6/site-packages/requests/models.py:928: HTTPError
  67. --------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------
  68. 10:26:31.528 - info: [ConfigProxy] 200 GET /api/routes
  69. 10:26:32.168 - info: [ConfigProxy] Adding route /@/space word/user/admin -> http://127.0.0.1:56379
  70. 10:26:32.168 - info: [ConfigProxy] 201 POST /api/routes/@/space%20word/user/admin
  71. ====================================================== 1 failed, 149 passed in 72.23 seconds =======================================================
  72. [10:27:07 carol@cw-pro] jupyterhub on minrk-last_activity [$] $
Advertisement
Add Comment
Please, Sign In to add comment