Skip to content

Commit 555de94

Browse files
committed
update TC
1 parent 7857f8d commit 555de94

File tree

4 files changed

+2
-26
lines changed

4 files changed

+2
-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: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,6 @@ def test_analyse_rst(
271271

272272
with dumped_content.open("r") as f:
273273
marked_content = json.load(f)
274-
# normalize filepath
275-
for obj in marked_content:
276-
obj["filepath"] = (
277-
Path(obj["filepath"]).relative_to(src_analyse_config.src_dir)
278-
).as_posix()
279-
assert marked_content == snapshot_marks
280274
normalize_file_path(marked_content, src_analyse_config.src_dir)
281275
assert marked_content == snapshot_marks
282276

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)