Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clearsource activate test-Ana3-jh
- [C[C[C[C[C[C[C[C[C[C[C[C[Ksource deactivate
- [C[C[C[C[C[C[C[C[C[C[C[Cpytest jupyterhub/tests
- [1m====================================================== test session starts ======================================================[0m
- platform darwin -- Python 3.5.2, pytest-3.0.4, py-1.4.31, pluggy-0.4.0
- rootdir: /Users/carol/test-sandbox-Ana/jupyterhub, inifile:
- plugins: cov-2.4.0
- [1m
- collecting 0 items[0m[1m
- collecting 33 items[0m[1m
- collecting 42 items[0m[1m
- collecting 55 items[0m[1m
- collecting 57 items[0m[1m
- collecting 67 items[0m[1m
- collecting 86 items[0m[1m
- collecting 89 items[0m[1m
- collecting 92 items[0m[1m
- collecting 96 items[0m[1m
- collecting 96 items[0m[1m
- collecting 100 items[0m[1m
- collecting 107 items[0m[1m
- collecting 110 items[0m[1m
- collected 110 items
- [0m
- jupyterhub/tests/test_api.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
- jupyterhub/tests/test_app.py .........
- jupyterhub/tests/test_auth.py .........E...
- jupyterhub/tests/test_db.py ..
- jupyterhub/tests/test_orm.py ..........
- jupyterhub/tests/test_pages.py EEEEEEEEEEEEEEEEEEE
- jupyterhub/tests/test_proxy.py FEE
- jupyterhub/tests/test_services.py EEE
- jupyterhub/tests/test_services_auth.py ...E
- jupyterhub/tests/test_singleuser.py EE..
- jupyterhub/tests/test_spawner.py .......
- jupyterhub/tests/test_traitlets.py ...
- ============================================================ ERRORS =============================================================
- ________________________________________________ ERROR at setup of test_auth_api ________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ----------------------------------------------------- Captured stderr setup -----------------------------------------------------
- [D 2016-11-15 10:13:03.867 MockHub application:555] Looking for jupyterhub_config in /Users/carol/test-sandbox-Ana/jupyterhub
- [D 2016-11-15 10:13:03.868 MockHub app:1280] Writing PID 16448 to /var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/tmpeswtdulk
- [I 2016-11-15 10:13:03.868 MockHub app:724] Loading cookie_secret from /Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub_cookie_secret
- [D 2016-11-15 10:13:03.869 MockHub app:796] Connecting to db: sqlite:////var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/tmpq1f3x5dn
- [W 2016-11-15 10:13:03.919 MockHub app:365]
- Generating CONFIGPROXY_AUTH_TOKEN. Restarting the Hub will require restarting the proxy.
- Set CONFIGPROXY_AUTH_TOKEN env or JupyterHub.proxy_auth_token config to avoid this message.
- [I 2016-11-15 10:13:03.927 MockHub app:892] Not using whitelist. Any authenticated user will be allowed.
- [D 2016-11-15 10:13:03.938 MockHub app:1082] Loading state for admin from db
- [D 2016-11-15 10:13:03.938 MockHub app:1094] admin not running.
- [D 2016-11-15 10:13:03.938 MockHub app:1099] Loaded users:
- admin admin
- [I 2016-11-15 10:13:03.949 MockHub app:1450] Hub API listening on http://127.0.0.1:8081/@/space%20word/hub/
- [D 2016-11-15 10:13:03.953 MockHub orm:146] Fetching GET http://127.0.0.1:8001/api/routes
- [E 2016-11-15 10:13:03.956 MockHub app:1136] Proxy appears to be running at http://127.0.0.1:8000/@/space%20word/, but I can't access it (HTTP 403: Forbidden)
- Did CONFIGPROXY_AUTH_TOKEN change?
- [D 2016-11-15 10:13:03.956 MockHub application:647] Exiting application: jupyterhub
- _____________________________________________ ERROR at setup of test_referer_check ______________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _______________________________________________ ERROR at setup of test_get_users ________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ________________________________________________ ERROR at setup of test_add_user ________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ________________________________________________ ERROR at setup of test_get_user ________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ___________________________________________ ERROR at setup of test_add_multi_user_bad ___________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _________________________________________ ERROR at setup of test_add_multi_user_invalid _________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _____________________________________________ ERROR at setup of test_add_multi_user _____________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- __________________________________________ ERROR at setup of test_add_multi_user_admin __________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ______________________________________________ ERROR at setup of test_add_user_bad ______________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _______________________________________________ ERROR at setup of test_add_admin ________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ______________________________________________ ERROR at setup of test_delete_user _______________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _______________________________________________ ERROR at setup of test_make_admin _______________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _________________________________________________ ERROR at setup of test_spawn __________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _______________________________________________ ERROR at setup of test_slow_spawn _______________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ______________________________________________ ERROR at setup of test_never_spawn _______________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _______________________________________________ ERROR at setup of test_get_proxy ________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _________________________________________________ ERROR at setup of test_cookie _________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _________________________________________________ ERROR at setup of test_token __________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _______________________________________________ ERROR at setup of test_get_token ________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _____________________________________________ ERROR at setup of test_bad_get_token ______________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ______________________________________________ ERROR at setup of test_groups_list _______________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _______________________________________________ ERROR at setup of test_group_get ________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- __________________________________________ ERROR at setup of test_group_create_delete ___________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ____________________________________________ ERROR at setup of test_group_add_users _____________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ___________________________________________ ERROR at setup of test_group_delete_users ___________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ______________________________________________ ERROR at setup of test_get_services ______________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ______________________________________________ ERROR at setup of test_get_service _______________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ________________________________________________ ERROR at setup of test_root_api ________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- __________________________________________________ ERROR at setup of test_info __________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ________________________________________________ ERROR at setup of test_options _________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- _____________________________________________ ERROR at setup of test_bad_json_body ______________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ________________________________________________ ERROR at setup of test_shutdown ________________________________________________
- request = <SubRequest 'app' for <Function 'test_auth_api'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ________________________________________________ ERROR at setup of test_handlers ________________________________________________
- request = <SubRequest 'app' for <Function 'test_handlers'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31mjupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31mjupyterhub/tests/mocking.py[0m:178: AssertionError
- ----------------------------------------------------- Captured stderr setup -----------------------------------------------------
- [I 2016-11-15 10:13:16.546 MockHub app:892] Not using whitelist. Any authenticated user will be allowed.
- [E 2016-11-15 10:13:16.560 MockHub app:1447] Failed to bind hub to http://127.0.0.1:8081/@/space%20word/hub/
- [E 2016-11-15 10:13:16.561 MockHub ioloop:633] Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x107318378>, <tornado.concurrent.Future object at 0x10668c240>)
- Traceback (most recent call last):
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 604, in _run_callback
- ret = callback()
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/stack_context.py", line 275, in null_wrapper
- return fn(*args, **kwargs)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 619, in <lambda>
- self.add_future(ret, lambda f: f.result())
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py", line 165, in _start_co
- yield super(MockHub, self).start()
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/app.py", line 1445, in start
- self.http_server.listen(self.hub_port, address=self.hub_ip)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/tcpserver.py", line 126, in listen
- sockets = bind_sockets(port, address=address)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/netutil.py", line 194, in bind_sockets
- sock.bind(sockaddr)
- OSError: [Errno 48] Address already in use
- ______________________________________________ ERROR at setup of test_root_no_auth ______________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ----------------------------------------------------- Captured stderr setup -----------------------------------------------------
- [I 2016-11-15 10:13:28.174 MockHub app:892] Not using whitelist. Any authenticated user will be allowed.
- [E 2016-11-15 10:13:28.190 MockHub app:1447] Failed to bind hub to http://127.0.0.1:8081/@/space%20word/hub/
- [E 2016-11-15 10:13:28.190 MockHub ioloop:633] Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x1073b77b8>, <tornado.concurrent.Future object at 0x1071b6630>)
- Traceback (most recent call last):
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 604, in _run_callback
- ret = callback()
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/stack_context.py", line 275, in null_wrapper
- return fn(*args, **kwargs)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 619, in <lambda>
- self.add_future(ret, lambda f: f.result())
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py", line 165, in _start_co
- yield super(MockHub, self).start()
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/app.py", line 1445, in start
- self.http_server.listen(self.hub_port, address=self.hub_ip)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/tcpserver.py", line 126, in listen
- sockets = bind_sockets(port, address=address)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/netutil.py", line 194, in bind_sockets
- sock.bind(sockaddr)
- OSError: [Errno 48] Address already in use
- _______________________________________________ ERROR at setup of test_root_auth ________________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- _____________________________________________ ERROR at setup of test_root_redirect ______________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ______________________________________________ ERROR at setup of test_home_no_auth ______________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- _______________________________________________ ERROR at setup of test_home_auth ________________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- _____________________________________________ ERROR at setup of test_admin_no_auth ______________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ____________________________________________ ERROR at setup of test_admin_not_admin _____________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- _________________________________________________ ERROR at setup of test_admin __________________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- _____________________________________________ ERROR at setup of test_spawn_redirect _____________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- _______________________________________________ ERROR at setup of test_spawn_page _______________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- _______________________________________________ ERROR at setup of test_spawn_form _______________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- __________________________________________ ERROR at setup of test_spawn_form_with_file __________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- _____________________________________________ ERROR at setup of test_user_redirect ______________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ________________________________________ ERROR at setup of test_user_redirect_deprecated ________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- _______________________________________________ ERROR at setup of test_login_fail _______________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- _____________________________________________ ERROR at setup of test_login_redirect _____________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- _________________________________________________ ERROR at setup of test_logout _________________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ______________________________________ ERROR at setup of test_login_no_whitelist_adds_user ______________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ______________________________________________ ERROR at setup of test_static_files ______________________________________________
- request = <SubRequest 'app' for <Function 'test_root_no_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ______________________________________________ ERROR at setup of test_check_routes ______________________________________________
- request = <SubRequest 'app' for <Function 'test_check_routes'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x108253048>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ----------------------------------------------------- Captured stderr setup -----------------------------------------------------
- [D 2016-11-15 10:13:48.607 MockHub application:555] Looking for jupyterhub_config in /private/var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/pytest-of-carol/pytest-5/test_upgrade_entrypoint0
- [D 2016-11-15 10:13:48.608 MockHub app:1280] Writing PID 16448 to /var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/tmpuj1tciu4
- [D 2016-11-15 10:13:48.609 MockHub app:740] Generating new cookie_secret
- [I 2016-11-15 10:13:48.609 MockHub app:745] Writing cookie_secret to /private/var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/pytest-of-carol/pytest-5/test_upgrade_entrypoint0/jupyterhub_cookie_secret
- [D 2016-11-15 10:13:48.609 MockHub app:796] Connecting to db: sqlite:////var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/tmp9oafqife
- [W 2016-11-15 10:13:48.632 MockHub app:365]
- Generating CONFIGPROXY_AUTH_TOKEN. Restarting the Hub will require restarting the proxy.
- Set CONFIGPROXY_AUTH_TOKEN env or JupyterHub.proxy_auth_token config to avoid this message.
- [I 2016-11-15 10:13:48.639 MockHub app:892] Not using whitelist. Any authenticated user will be allowed.
- [D 2016-11-15 10:13:48.648 MockHub app:1082] Loading state for admin from db
- [D 2016-11-15 10:13:48.649 MockHub app:1094] admin not running.
- [D 2016-11-15 10:13:48.649 MockHub app:1099] Loaded users:
- admin admin
- [E 2016-11-15 10:13:48.654 MockHub app:1447] Failed to bind hub to http://127.0.0.1:8081/@/space%20word/hub/
- [E 2016-11-15 10:13:48.654 MockHub ioloop:633] Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x108245a60>, <tornado.concurrent.Future object at 0x108253358>)
- Traceback (most recent call last):
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 604, in _run_callback
- ret = callback()
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/stack_context.py", line 275, in null_wrapper
- return fn(*args, **kwargs)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 619, in <lambda>
- self.add_future(ret, lambda f: f.result())
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py", line 165, in _start_co
- yield super(MockHub, self).start()
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/app.py", line 1445, in start
- self.http_server.listen(self.hub_port, address=self.hub_ip)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/tcpserver.py", line 126, in listen
- sockets = bind_sockets(port, address=address)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/netutil.py", line 194, in bind_sockets
- sock.bind(sockaddr)
- OSError: [Errno 48] Address already in use
- __________________________________________ ERROR at setup of test_patch_proxy_bad_req ___________________________________________
- request = <SubRequest 'app' for <Function 'test_check_routes'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x108253048>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ____________________________________________ ERROR at setup of test_managed_service _____________________________________________
- request = <SubRequest 'app' for <Function 'test_managed_service'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x108253048>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ----------------------------------------------------- Captured stderr setup -----------------------------------------------------
- [D 2016-11-15 10:13:58.636 MockHub application:555] Looking for jupyterhub_config in /private/var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/pytest-of-carol/pytest-5/test_upgrade_entrypoint0
- [D 2016-11-15 10:13:58.637 MockHub app:1280] Writing PID 16448 to /var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/tmpjpjo8ims
- [D 2016-11-15 10:13:58.637 MockHub app:796] Connecting to db: sqlite:////var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/tmplr79ka12
- [I 2016-11-15 10:13:58.668 MockHub app:892] Not using whitelist. Any authenticated user will be allowed.
- [D 2016-11-15 10:13:58.676 MockHub app:1082] Loading state for admin from db
- [D 2016-11-15 10:13:58.676 MockHub app:1094] admin not running.
- [D 2016-11-15 10:13:58.676 MockHub app:1099] Loaded users:
- admin admin
- [E 2016-11-15 10:13:58.682 MockHub app:1447] Failed to bind hub to http://127.0.0.1:8081/@/space%20word/hub/
- [E 2016-11-15 10:13:58.682 MockHub ioloop:633] Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x10823c950>, <tornado.concurrent.Future object at 0x1081f58d0>)
- Traceback (most recent call last):
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 604, in _run_callback
- ret = callback()
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/stack_context.py", line 275, in null_wrapper
- return fn(*args, **kwargs)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 619, in <lambda>
- self.add_future(ret, lambda f: f.result())
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py", line 165, in _start_co
- yield super(MockHub, self).start()
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/app.py", line 1445, in start
- self.http_server.listen(self.hub_port, address=self.hub_ip)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/tcpserver.py", line 126, in listen
- sockets = bind_sockets(port, address=address)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/netutil.py", line 194, in bind_sockets
- sock.bind(sockaddr)
- OSError: [Errno 48] Address already in use
- _____________________________________________ ERROR at setup of test_proxy_service ______________________________________________
- request = <SubRequest 'app' for <Function 'test_managed_service'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x108253048>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ____________________________________________ ERROR at setup of test_external_service ____________________________________________
- request = <SubRequest 'app' for <Function 'test_managed_service'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x108253048>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- __________________________________________ ERROR at setup of test_service_cookie_auth ___________________________________________
- request = <SubRequest 'app' for <Function 'test_service_cookie_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x108253048>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ----------------------------------------------------- Captured stderr setup -----------------------------------------------------
- [D 2016-11-15 10:14:08.728 MockHub application:555] Looking for jupyterhub_config in /private/var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/pytest-of-carol/pytest-5/test_upgrade_entrypoint0
- [D 2016-11-15 10:14:08.728 MockHub app:1280] Writing PID 16448 to /var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/tmpkigl2v5u
- [D 2016-11-15 10:14:08.729 MockHub app:796] Connecting to db: sqlite:////var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/tmpc7ist350
- [I 2016-11-15 10:14:08.758 MockHub app:892] Not using whitelist. Any authenticated user will be allowed.
- [D 2016-11-15 10:14:08.767 MockHub app:1082] Loading state for admin from db
- [D 2016-11-15 10:14:08.768 MockHub app:1094] admin not running.
- [D 2016-11-15 10:14:08.768 MockHub app:1099] Loaded users:
- admin admin
- [E 2016-11-15 10:14:08.773 MockHub app:1447] Failed to bind hub to http://127.0.0.1:8081/@/space%20word/hub/
- [E 2016-11-15 10:14:08.773 MockHub ioloop:633] Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x10aeff510>, <tornado.concurrent.Future object at 0x10826ea58>)
- Traceback (most recent call last):
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 604, in _run_callback
- ret = callback()
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/stack_context.py", line 275, in null_wrapper
- return fn(*args, **kwargs)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 619, in <lambda>
- self.add_future(ret, lambda f: f.result())
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py", line 165, in _start_co
- yield super(MockHub, self).start()
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/app.py", line 1445, in start
- self.http_server.listen(self.hub_port, address=self.hub_ip)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/tcpserver.py", line 126, in listen
- sockets = bind_sockets(port, address=address)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/netutil.py", line 194, in bind_sockets
- sock.bind(sockaddr)
- OSError: [Errno 48] Address already in use
- ____________________________________________ ERROR at setup of test_singleuser_auth _____________________________________________
- request = <SubRequest 'app' for <Function 'test_singleuser_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x108253048>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ----------------------------------------------------- Captured stderr setup -----------------------------------------------------
- [D 2016-11-15 10:14:18.747 MockHub application:555] Looking for jupyterhub_config in /private/var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/pytest-of-carol/pytest-5/test_upgrade_entrypoint0
- [D 2016-11-15 10:14:18.747 MockHub app:1280] Writing PID 16448 to /var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/tmpfwqudaba
- [D 2016-11-15 10:14:18.748 MockHub app:796] Connecting to db: sqlite:////var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/tmpwn26qur6
- [I 2016-11-15 10:14:18.816 MockHub app:892] Not using whitelist. Any authenticated user will be allowed.
- [D 2016-11-15 10:14:18.826 MockHub app:1082] Loading state for admin from db
- [D 2016-11-15 10:14:18.826 MockHub app:1094] admin not running.
- [D 2016-11-15 10:14:18.826 MockHub app:1099] Loaded users:
- admin admin
- [E 2016-11-15 10:14:18.834 MockHub app:1447] Failed to bind hub to http://127.0.0.1:8081/@/space%20word/hub/
- [E 2016-11-15 10:14:18.834 MockHub ioloop:633] Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x1073180d0>, <tornado.concurrent.Future object at 0x1077c1cc0>)
- Traceback (most recent call last):
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 604, in _run_callback
- ret = callback()
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/stack_context.py", line 275, in null_wrapper
- return fn(*args, **kwargs)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 619, in <lambda>
- self.add_future(ret, lambda f: f.result())
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py", line 165, in _start_co
- yield super(MockHub, self).start()
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/app.py", line 1445, in start
- self.http_server.listen(self.hub_port, address=self.hub_ip)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/tcpserver.py", line 126, in listen
- sockets = bind_sockets(port, address=address)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/netutil.py", line 194, in bind_sockets
- sock.bind(sockaddr)
- OSError: [Errno 48] Address already in use
- __________________________________________ ERROR at setup of test_disable_user_config ___________________________________________
- request = <SubRequest 'app' for <Function 'test_singleuser_auth'>>
- [1m @fixture(scope='module')[0m
- [1m def app(request):[0m
- [1m app = MockHub.instance(log_level=logging.DEBUG)[0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/conftest.py[0m:55:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x108253048>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- =========================================================== FAILURES ============================================================
- [1m[31m______________________________________________________ test_external_proxy ______________________________________________________[0m
- request = <FixtureRequest for <Function 'test_external_proxy'>>, io_loop = <zmq.eventloop.ioloop.ZMQIOLoop object at 0x108214080>
- [1m def test_external_proxy(request, io_loop):[0m
- [1m """Test a proxy started before the Hub"""[0m
- [1m auth_token='secret!'[0m
- [1m proxy_ip = '127.0.0.1'[0m
- [1m proxy_port = 54321[0m
- [1m [0m
- [1m app = MockHub.instance([0m
- [1m proxy_api_ip=proxy_ip,[0m
- [1m proxy_api_port=proxy_port,[0m
- [1m proxy_auth_token=auth_token,[0m
- [1m )[0m
- [1m def fin():[0m
- [1m MockHub.clear_instance()[0m
- [1m app.stop()[0m
- [1m request.addfinalizer(fin)[0m
- [1m env = os.environ.copy()[0m
- [1m env['CONFIGPROXY_AUTH_TOKEN'] = auth_token[0m
- [1m cmd = app.proxy_cmd + [[0m
- [1m '--ip', app.ip,[0m
- [1m '--port', str(app.port),[0m
- [1m '--api-ip', proxy_ip,[0m
- [1m '--api-port', str(proxy_port),[0m
- [1m '--default-target', 'http://%s:%i' % (app.hub_ip, app.hub_port),[0m
- [1m ][0m
- [1m if app.subdomain_host:[0m
- [1m cmd.append('--host-routing')[0m
- [1m proxy = Popen(cmd, env=env)[0m
- [1m def _cleanup_proxy():[0m
- [1m if proxy.poll() is None:[0m
- [1m proxy.terminate()[0m
- [1m request.addfinalizer(_cleanup_proxy)[0m
- [1m [0m
- [1m def wait_for_proxy():[0m
- [1m io_loop.run_sync(lambda : wait_for_http_server([0m
- [1m 'http://%s:%i' % (proxy_ip, proxy_port)))[0m
- [1m wait_for_proxy()[0m
- [1m [0m
- [1m> app.start([])[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/test_proxy.py[0m:51:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <jupyterhub.tests.mocking.MockHub object at 0x107040ba8>, argv = []
- [1m def start(self, argv=None):[0m
- [1m self.db_file = NamedTemporaryFile()[0m
- [1m self.pid_file = NamedTemporaryFile(delete=False).name[0m
- [1m self.db_url = self.db_file.name[0m
- [1m [0m
- [1m evt = threading.Event()[0m
- [1m [0m
- [1m @gen.coroutine[0m
- [1m def _start_co():[0m
- [1m assert self.io_loop._running[0m
- [1m # put initialize in start for SQLAlchemy threading reasons[0m
- [1m yield super(MockHub, self).initialize(argv=argv)[0m
- [1m # add an initial user[0m
- [1m user = orm.User(name='user')[0m
- [1m self.db.add(user)[0m
- [1m self.db.commit()[0m
- [1m yield super(MockHub, self).start()[0m
- [1m yield self.hub.server.wait_up(http=True)[0m
- [1m self.io_loop.add_callback(evt.set)[0m
- [1m [0m
- [1m def _start():[0m
- [1m self.io_loop = IOLoop()[0m
- [1m self.io_loop.make_current()[0m
- [1m self.io_loop.add_callback(_start_co)[0m
- [1m self.io_loop.start()[0m
- [1m [0m
- [1m self._thread = threading.Thread(target=_start)[0m
- [1m self._thread.start()[0m
- [1m ready = evt.wait(timeout=10)[0m
- [1m> assert ready[0m
- [1m[31mE AssertionError[0m
- [1m[31m/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py[0m:178: AssertionError
- ----------------------------------------------------- Captured stdout call ------------------------------------------------------
- 10:13:38.461 - info: [ConfigProxy] Proxying http://127.0.0.1:8000 to http://127.0.0.1:8081
- 10:13:38.464 - info: [ConfigProxy] Proxy API at http://127.0.0.1:54321/api/routes
- ----------------------------------------------------- Captured stderr call ------------------------------------------------------
- 10:13:38.469 - error: [ConfigProxy] Uncaught Exception Error: listen EADDRINUSE 127.0.0.1:8000
- at Object.exports._errnoException (util.js:1022:11)
- at exports._exceptionWithHostPort (util.js:1045:20)
- at Server._listen2 (net.js:1262:14)
- at listen (net.js:1298:10)
- at doListening (net.js:1397:7)
- at _combinedTickCallback (internal/process/next_tick.js:77:11)
- at process._tickCallback (internal/process/next_tick.js:98:9)
- at Module.runMain (module.js:609:11)
- at run (bootstrap_node.js:420:7)
- at startup (bootstrap_node.js:139:9)
- 10:13:38.563 - error: [ConfigProxy] 404 GET /
- [I 2016-11-15 10:13:38.600 MockHub app:892] Not using whitelist. Any authenticated user will be allowed.
- [E 2016-11-15 10:13:38.614 MockHub app:1447] Failed to bind hub to http://127.0.0.1:8081/@/space%20word/hub/
- [E 2016-11-15 10:13:38.615 MockHub ioloop:633] Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x108236510>, <tornado.concurrent.Future object at 0x1077ea2b0>)
- Traceback (most recent call last):
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 604, in _run_callback
- ret = callback()
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/stack_context.py", line 275, in null_wrapper
- return fn(*args, **kwargs)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/ioloop.py", line 619, in <lambda>
- self.add_future(ret, lambda f: f.result())
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/mocking.py", line 165, in _start_co
- yield super(MockHub, self).start()
- File "/Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/app.py", line 1445, in start
- self.http_server.listen(self.hub_port, address=self.hub_ip)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/tcpserver.py", line 126, in listen
- sockets = bind_sockets(port, address=address)
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/site-packages/tornado/netutil.py", line 194, in bind_sockets
- sock.bind(sockaddr)
- OSError: [Errno 48] Address already in use
- --------------------------------------------------- Captured stderr teardown ----------------------------------------------------
- [I 2016-11-15 10:13:48.581 MockHub app:1329] Cleaning up single-user servers...
- [I 2016-11-15 10:13:48.601 MockHub app:1347] I didn't start the proxy, I can't clean it up
- [I 2016-11-15 10:13:48.602 MockHub app:1362] Cleaning up PID file /var/folders/6w/ngfnsn257lg4bs8drj96f92w0000gn/T/tmp7zjcitdh
- [I 2016-11-15 10:13:48.602 MockHub app:1366] ...done
- ==================================================== pytest-warning summary =====================================================
- WC1 /Users/carol/test-sandbox-Ana/jupyterhub/jupyterhub/tests/test_singleuser.py cannot collect test class 'TestSingleUserSpawner' because it has a __init__ constructor
- [1m[31m=============================== 1 failed, 48 passed, 1 pytest-warnings, 61 error in 95.26 seconds ===============================[0m
- ^CException ignored in: <module 'threading' from '/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/threading.py'>
- Traceback (most recent call last):
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/threading.py", line 1288, in _shutdown
- t.join()
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/threading.py", line 1054, in join
- self._wait_for_tstate_lock()
- File "/Users/carol/anaconda3/envs/test-Ana3-jh/lib/python3.5/threading.py", line 1070, in _wait_for_tstate_lock
- elif lock.acquire(block, timeout):
- KeyboardInterrupt
- (test-Ana3-jh) [1m[38;5;125mcarol [38;5;244mat [38;5;166mCarols-MacBook-Pro-2 [38;5;244min [38;5;64m~/test-sandbox-Ana/jupyterhub[38;5;244m on [38;5;61mmaster*[38;5;244m
- [10:16:08]$ (B[m
Advertisement
Add Comment
Please, Sign In to add comment