mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-08 02:24:04 +00:00
17 lines
498 B
Python
17 lines
498 B
Python
# Copyright (c) Jupyter Development Team.
|
|
# Distributed under the terms of the Modified BSD License.
|
|
|
|
|
|
import requests
|
|
from conftest import TrackedContainer
|
|
|
|
|
|
def test_secured_server(
|
|
container: TrackedContainer, http_client: requests.Session
|
|
) -> None:
|
|
"""Notebook server should eventually request user login."""
|
|
container.run_detached()
|
|
resp = http_client.get("http://localhost:8888")
|
|
resp.raise_for_status()
|
|
assert "login_submit" in resp.text, "User login not requested"
|