Skip to content

Commit 376739c

Browse files
committed
add tc
1 parent c2084a3 commit 376739c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/test_rst_parser.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,24 @@
128128
"content": ".. commentline\nContent without blank line.",
129129
},
130130
),
131+
(
132+
""".. test-case:: test_xyz
133+
:file: test_reports/abc.xml
134+
:suite: test_abc
135+
:case: test_xyz
136+
:id: SW_TEST_CASE_XYZ
137+
:release: abc-1.2.3
138+
:uplink: SW_UNIT_IF_XYZ
139+
140+
Test case to verify xyz does behavior abc
141+
""",
142+
{
143+
"type": "test-case",
144+
"title": "comment in content",
145+
"options": {"option": "value"},
146+
"content": ".. commentline\nContent without blank line.",
147+
},
148+
),
131149
],
132150
)
133151
def test_sn_rst_parser_positive(text: str, expected: dict):

0 commit comments

Comments
 (0)