Pin jupyter_server>=2.0.0 (#1853)

* Pin jupyter_server==2.0.0

* Update scipy-notebook/Dockerfile

Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>

* Fix test

* Fix test

* Test healthcheck properly

* Fix typing

Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>
This commit is contained in:
Ayaz Salikhov
2022-12-30 11:08:27 +02:00
committed by GitHub
parent 6d1862cf30
commit 2a1cd45ebf
5 changed files with 28 additions and 1 deletions

View File

@@ -24,6 +24,12 @@ def find_free_port() -> str:
return s.getsockname()[1] # type: ignore
def get_health(container: Container) -> str:
api_client = docker.APIClient()
inspect_results = api_client.inspect_container(container.name)
return inspect_results["State"]["Health"]["Status"] # type: ignore
@pytest.fixture(scope="session")
def http_client() -> requests.Session:
"""Requests session with retries and backoff."""