mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-09 19:12:59 +00:00
20 lines
607 B
Python
20 lines
607 B
Python
# Copyright (c) Jupyter Development Team.
|
|
# Distributed under the terms of the Modified BSD License.
|
|
import logging
|
|
|
|
LOGGER = logging.getLogger(__name__)
|
|
|
|
|
|
def test_julia(container):
|
|
"""Basic julia test"""
|
|
LOGGER.info("Test that julia is correctly installed ...")
|
|
running_container = container.run(
|
|
tty=True,
|
|
command=["start.sh", "bash", "-c", "sleep infinity"]
|
|
)
|
|
command = "julia --version"
|
|
cmd = running_container.exec_run(command)
|
|
output = cmd.output.decode("utf-8")
|
|
assert cmd.exit_code == 0, f"Command {command} failed {output}"
|
|
LOGGER.debug(output)
|