Skip to content

Commit dccb9d5

Browse files
committed
Confirm that we can extrac snippets from XML.
1 parent d17e3f4 commit dccb9d5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

aws_doc_sdk_examples_tools/snippets_test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
"snippet" + "-end:[this.is.a.snippet.tag]\n",
6161
1,
6262
),
63+
(
64+
"<!-- snippet" + "-start:[xml.snippet] -->\n"
65+
"<text>some xml</text>"
66+
"<!-- snippet" + "-end:[xml.snippet] -->\n",
67+
0
68+
),
6369
],
6470
)
6571
def test_verify_snippet_start_end(file_contents: str, expected_error_count: int):
@@ -101,4 +107,4 @@ def test_strip_spdx_header():
101107
]
102108
)
103109

104-
assert [] == snippets.strip_spdx_header([])
110+
assert [] == snippets.strip_spdx_header([])

0 commit comments

Comments
 (0)