mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-10 11:32:57 +00:00
Unify docker usage in tests
This commit is contained in:
@@ -11,11 +11,9 @@ LOGGER = logging.getLogger(__name__)
|
||||
def test_inkscape(container: TrackedContainer) -> None:
|
||||
"""Inkscape shall be installed to be able to convert SVG files."""
|
||||
LOGGER.info("Test that inkscape is working by printing its version ...")
|
||||
c = container.run(
|
||||
logs = container.run_and_wait(
|
||||
timeout=10,
|
||||
tty=True,
|
||||
command=["start.sh", "bash", "-c", "inkscape --version"],
|
||||
)
|
||||
c.wait(timeout=10)
|
||||
logs = c.logs(stdout=True).decode("utf-8")
|
||||
LOGGER.debug(logs)
|
||||
assert "Inkscape" in logs, "Inkscape not installed or not working"
|
||||
|
Reference in New Issue
Block a user