mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-10 11:32:57 +00:00
Matplotlib tests + helpers methods
* Maplotlib is an important package. It has now its own test checking that a plot can be generated and exported has an image. * Some helpers methods added to the `Makefile` mainly permitting to clean containers and images * Improved assertion messages of some tests
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
# Copyright (c) Jupyter Development Team.
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
|
||||
|
||||
def test_secured_server(container, http_client):
|
||||
"""Notebook server should eventually request user login."""
|
||||
container.run()
|
||||
resp = http_client.get('http://localhost:8888')
|
||||
resp = http_client.get("http://localhost:8888")
|
||||
resp.raise_for_status()
|
||||
assert 'login_submit' in resp.text
|
||||
assert "login_submit" in resp.text, "User login not requested"
|
||||
|
Reference in New Issue
Block a user