Skip to content

Commit 51e445d

Browse files
committed
check comments early
1 parent 763a921 commit 51e445d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/sample_header_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77

88

99
def test_generate_headers(capsys, tmp_path):
10-
comments = pybind11_mkdoc.mkdoc_lib.extract_all([os.path.join(DIR, "sample_header_docs", "sample_header.h")])
10+
comments = pybind11_mkdoc.mkdoc_lib.extract_all(
11+
[os.path.join(DIR, "sample_header_docs", "sample_header.h")]
12+
)
13+
assert ['mkd_doc_RootLevelSymbol', 'mkd_doc_drake_MidLevelSymbol'] == [c[0] for c in comments]
14+
1115
output = tmp_path / "docs.h"
1216
with output.open("w") as fd:
1317
pybind11_mkdoc.mkdoc_lib.write_header(comments, fd)

0 commit comments

Comments
 (0)