Spaces:
Running on Zero
Running on Zero
Update markdown preview test loader for spatial helpers
Browse files
tests/test_markdown_preview.py
CHANGED
|
@@ -57,7 +57,12 @@ def _load_preview_functions():
|
|
| 57 |
source = app_path.read_text(encoding="utf-8")
|
| 58 |
module = ast.parse(source, filename=str(app_path))
|
| 59 |
|
| 60 |
-
wanted = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
fn_nodes = [n for n in module.body if isinstance(n, ast.FunctionDef) and n.name in wanted]
|
| 62 |
fn_nodes.sort(key=lambda n: n.lineno)
|
| 63 |
|
|
|
|
| 57 |
source = app_path.read_text(encoding="utf-8")
|
| 58 |
module = ast.parse(source, filename=str(app_path))
|
| 59 |
|
| 60 |
+
wanted = {
|
| 61 |
+
"_to_mathml",
|
| 62 |
+
"_inject_spatial_gap_placeholders",
|
| 63 |
+
"_restore_spatial_gap_placeholders",
|
| 64 |
+
"to_math_html",
|
| 65 |
+
}
|
| 66 |
fn_nodes = [n for n in module.body if isinstance(n, ast.FunctionDef) and n.name in wanted]
|
| 67 |
fn_nodes.sort(key=lambda n: n.lineno)
|
| 68 |
|