mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-11 12:02:56 +00:00
Move assert after logs output to make debug easier
This commit is contained in:
@@ -21,9 +21,9 @@ def test_start_notebook(container, http_client, env, expected_server):
|
||||
)
|
||||
c = container.run(tty=True, environment=env, command=["start-notebook.sh"])
|
||||
resp = http_client.get("http://localhost:8888")
|
||||
assert resp.status_code == 200, "Server is not listening"
|
||||
logs = c.logs(stdout=True).decode("utf-8")
|
||||
LOGGER.debug(logs)
|
||||
assert resp.status_code == 200, "Server is not listening"
|
||||
assert (
|
||||
f"Executing the command: jupyter {expected_server}" in logs
|
||||
), f"Not the expected command (jupyter {expected_server}) was launched"
|
||||
|
Reference in New Issue
Block a user