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:
@@ -10,13 +10,9 @@ LOGGER = logging.getLogger(__name__)
|
||||
|
||||
def test_pandoc(container: TrackedContainer) -> None:
|
||||
"""Pandoc shall be able to convert MD to HTML."""
|
||||
c = container.run(
|
||||
logs = container.run_and_wait(
|
||||
timeout=10,
|
||||
tty=True,
|
||||
command=["start.sh", "bash", "-c", 'echo "**BOLD**" | pandoc'],
|
||||
)
|
||||
c.wait(timeout=10)
|
||||
logs = c.logs(stdout=True).decode("utf-8")
|
||||
assert "ERROR" not in logs
|
||||
assert "WARNING" not in logs
|
||||
LOGGER.debug(logs)
|
||||
assert "<p><strong>BOLD</strong></p>" in logs
|
||||
|
Reference in New Issue
Block a user