markdown-exec 1.9.1__tar.gz → 1.9.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/PKG-INFO +1 -1
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/pyproject.toml +1 -1
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/formatters/base.py +1 -1
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/tests/test_base_formatter.py +16 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/LICENSE +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/README.md +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/__init__.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/ansi.css +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/debug.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/formatters/__init__.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/formatters/_exec_python.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/formatters/bash.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/formatters/console.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/formatters/markdown.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/formatters/pycon.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/formatters/pyodide.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/formatters/python.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/formatters/sh.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/formatters/tree.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/logger.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/mkdocs_plugin.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/processors.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/py.typed +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/pyodide.css +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/pyodide.js +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/src/markdown_exec/rendering.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/tests/__init__.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/tests/conftest.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/tests/test_converter.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/tests/test_headings.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/tests/test_python.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/tests/test_shell.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/tests/test_toc.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/tests/test_tree.py +0 -0
- {markdown_exec-1.9.1 → markdown_exec-1.9.2}/tests/test_validator.py +0 -0
@@ -77,6 +77,22 @@ def test_dont_render_anything_if_output_is_empty(md: Markdown) -> None:
|
|
77
77
|
assert not markup
|
78
78
|
|
79
79
|
|
80
|
+
def test_render_source_even_if_output_is_empty(md: Markdown) -> None:
|
81
|
+
"""Assert source is rendered even if output is empty.
|
82
|
+
|
83
|
+
Parameters:
|
84
|
+
md: A Markdown instance (fixture).
|
85
|
+
"""
|
86
|
+
markup = base_format(
|
87
|
+
language="bash",
|
88
|
+
run=lambda code, **_: "",
|
89
|
+
code="whatever",
|
90
|
+
md=md,
|
91
|
+
source="tabbed-left",
|
92
|
+
)
|
93
|
+
assert "Source" in markup
|
94
|
+
|
95
|
+
|
80
96
|
def test_changing_working_directory(md: Markdown) -> None:
|
81
97
|
"""Assert we can change the working directory with `workdir`.
|
82
98
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|