diff --git a/base-notebook/test/test_pandoc.py b/base-notebook/test/test_pandoc.py new file mode 100644 index 00000000..103f418a --- /dev/null +++ b/base-notebook/test/test_pandoc.py @@ -0,0 +1,20 @@ +# Copyright (c) Jupyter Development Team. +# Distributed under the terms of the Modified BSD License. + +import logging + +import pytest + +LOGGER = logging.getLogger(__name__) + + +def test_pandoc(container): + """Pandoc shall be able to convert MD to HTML.""" + c = container.run( + tty=True, command=["start.sh", "bash", "-c", 'echo "**BOLD**" | pandoc'] + ) + c.wait(timeout=10) + logs = c.logs(stdout=True).decode("utf-8") + LOGGER.debug(logs) + assert "

BOLD

" in logs + diff --git a/minimal-notebook/Dockerfile b/minimal-notebook/Dockerfile index a706eefc..e578b503 100644 --- a/minimal-notebook/Dockerfile +++ b/minimal-notebook/Dockerfile @@ -19,7 +19,6 @@ RUN apt-get update && apt-get install -yq --no-install-recommends \ libxrender1 \ lmodern \ netcat \ - pandoc \ python-dev \ texlive-fonts-extra \ texlive-fonts-recommended \ diff --git a/pytest.ini b/pytest.ini index f861f05e..1c0585dc 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,5 +1,6 @@ [pytest] +addopts = -rA log_cli = 1 -log_cli_level = INFO +log_cli_level = DEBUG log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s) log_cli_date_format=%Y-%m-%d %H:%M:%S \ No newline at end of file