mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-10 03:23:00 +00:00
Unify docker usage in tests
This commit is contained in:
@@ -27,11 +27,8 @@ def test_check_extension(container: TrackedContainer, extension: str) -> None:
|
||||
|
||||
"""
|
||||
LOGGER.info(f"Checking the extension: {extension} ...")
|
||||
c = container.run(
|
||||
container.run_and_wait(
|
||||
timeout=10,
|
||||
tty=True,
|
||||
command=["start.sh", "jupyter", "labextension", "check", extension],
|
||||
)
|
||||
rv = c.wait(timeout=10)
|
||||
logs = c.logs(stdout=True).decode("utf-8")
|
||||
LOGGER.debug(logs)
|
||||
assert rv == 0 or rv["StatusCode"] == 0, f"Extension {extension} check failed"
|
||||
|
Reference in New Issue
Block a user