mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-09 19:12:59 +00:00
nbconvert + inkscape test improvements
This commit is contained in:
18
minimal-notebook/test/test_inkscape.py
Normal file
18
minimal-notebook/test/test_inkscape.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Copyright (c) Jupyter Development Team.
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
|
||||
import logging
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def test_inkscape(container):
|
||||
"""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(
|
||||
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