Unify docker usage in tests

This commit is contained in:
Ayaz Salikhov
2022-01-22 00:46:20 +02:00
parent 2fee7b754c
commit 12b618c5da
17 changed files with 104 additions and 146 deletions

View File

@@ -10,7 +10,7 @@ def test_secured_server(
container: TrackedContainer, http_client: requests.Session
) -> None:
"""Notebook server should eventually request user login."""
container.run()
container.run_detached()
resp = http_client.get("http://localhost:8888")
resp.raise_for_status()
assert "login_submit" in resp.text, "User login not requested"