Skip to content

Commit c3035ad

Browse files
committed
tests: add test of options
1 parent 418705b commit c3035ad

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

quartodoc/tests/test_builder_blueprint.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,21 @@ def test_blueprint_auto_package(bp):
117117

118118
# 4 objects documented
119119
assert len(sections[0].contents) == 4
120+
121+
122+
def test_blueprint_section_options():
123+
layout = lo.Layout(
124+
sections=[
125+
lo.Section(
126+
contents=[lo.Auto(name="AClass")],
127+
package="quartodoc.tests.example",
128+
options={"members": []},
129+
)
130+
]
131+
)
132+
133+
res = blueprint(layout)
134+
page = res.sections[0].contents[0]
135+
doc = page.contents[0]
136+
137+
assert doc.members == []

0 commit comments

Comments
 (0)