Skip to content

Commit 08c3dda

Browse files
committed
update TC
1 parent ebca3f7 commit 08c3dda

File tree

4 files changed

+3
-26
lines changed

4 files changed

+3
-26
lines changed

tests/__snapshots__/test_analyse/test_analyse_rst[link_options_rst_marker].anchors.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"id": "REQ_001",
2222
"links": [
2323
"IMPL_001",
24-
" IMPL_002"
24+
"IMPL_002"
2525
]
2626
},
2727
"type": "rst"

tests/__snapshots__/test_analyse/test_analyse_rst[warning_invalid_type].anchors.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"id": "REQ_002",
4040
"links": [
4141
"IMPL_001",
42-
" IMPL_002"
42+
"IMPL_002"
4343
]
4444
},
4545
"type": "rst"

tests/test_analyse.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ def test_analyse_oneline_needs(
144144
cnt_comments += len(src_file.src_comments)
145145
assert cnt_comments == result["num_comments"]
146146

147+
147148
def test_oneline_parser_warnings_are_collected(tmp_path):
148149
"""Test that oneline parser warnings are collected for later output."""
149150
src_dir = TEST_DIR / "data" / "oneline_comment_default"
@@ -203,12 +204,6 @@ def test_analyse_rst(
203204

204205
with dumped_content.open("r") as f:
205206
marked_content = json.load(f)
206-
# normalize filepath
207-
for obj in marked_content:
208-
obj["filepath"] = (
209-
Path(obj["filepath"]).relative_to(src_analyse_config.src_dir)
210-
).as_posix()
211-
assert marked_content == snapshot_marks
212207
normalize_file_path(marked_content, src_analyse_config.src_dir)
213208
assert marked_content == snapshot_marks
214209

tests/test_rst_parser.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -128,24 +128,6 @@
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-
),
149131
],
150132
)
151133
def test_sn_rst_parser_positive(text: str, expected: dict):

0 commit comments

Comments
 (0)