Skip to content

Commit 67c8e53

Browse files
committed
tests: simple test of preview
1 parent 7d00a72 commit 67c8e53

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

quartodoc/tests/test_ast.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import quartodoc.ast as qast
2-
32
import pytest
3+
44
from griffe.docstrings import dataclasses as ds
55
from griffe import dataclasses as dc
66
from griffe.docstrings.parsers import parse_numpy
77

8+
from quartodoc import get_object
9+
810

911
@pytest.mark.parametrize(
1012
"el, body",
@@ -59,3 +61,11 @@ def test_transform_docstring_section_clump():
5961

6062
# what to do here? this should more reasonably be handled when transform
6163
# operates on the root.
64+
65+
66+
def test_preview_no_fail(capsys):
67+
qast.preview(get_object("quartodoc", "get_object"))
68+
69+
res = capsys.readouterr()
70+
71+
assert "get_object" in res.out

0 commit comments

Comments
 (0)