From a3cfda28da41b35a2824a7cc3cc3d5ed8c0e6cdc Mon Sep 17 00:00:00 2001 From: Peter Parente Date: Thu, 4 Jan 2018 22:40:46 -0500 Subject: [PATCH] Verify path prefix in test --- base-notebook/test/test_container_options.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base-notebook/test/test_container_options.py b/base-notebook/test/test_container_options.py index 28bc97b7..898d46cb 100644 --- a/base-notebook/test/test_container_options.py +++ b/base-notebook/test/test_container_options.py @@ -78,10 +78,11 @@ def test_sudo_path(container): tty=True, user='root', environment=['GRANT_SUDO=yes'], - command=['start.sh', 'sudo', 'jupyter', '--version'] + command=['start.sh', 'sudo', 'which', 'jupyter'] ) rv = c.wait(timeout=10) assert rv == 0 + assert c.logs(stdout=True).decode('utf-8').rstrip().endswith('/opt/conda/bin/jupyter') def test_group_add(container, tmpdir):