mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-11 12:02:56 +00:00
Log before assert
This commit is contained in:
@@ -15,11 +15,11 @@ def test_cli_args(container, http_client):
|
|||||||
resp = http_client.get("http://localhost:8888")
|
resp = http_client.get("http://localhost:8888")
|
||||||
resp.raise_for_status()
|
resp.raise_for_status()
|
||||||
logs = c.logs(stdout=True).decode("utf-8")
|
logs = c.logs(stdout=True).decode("utf-8")
|
||||||
|
LOGGER.debug(logs)
|
||||||
assert "ERROR" not in logs
|
assert "ERROR" not in logs
|
||||||
warnings = [
|
warnings = [
|
||||||
warning for warning in logs.split("\n") if warning.startswith("WARNING")
|
warning for warning in logs.split("\n") if warning.startswith("WARNING")
|
||||||
]
|
]
|
||||||
LOGGER.debug(logs)
|
|
||||||
assert len(warnings) == 1
|
assert len(warnings) == 1
|
||||||
assert warnings[0].startswith("WARNING: Jupyter Notebook deprecation notice")
|
assert warnings[0].startswith("WARNING: Jupyter Notebook deprecation notice")
|
||||||
assert "login_submit" not in resp.text
|
assert "login_submit" not in resp.text
|
||||||
|
Reference in New Issue
Block a user