mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 23:12:56 +00:00
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:
@@ -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."""
|
||||
|
Reference in New Issue
Block a user