Files
CTTools0.2Plus/stuctor/wdsc.py
2026-01-28 17:01:19 +08:00

14 lines
574 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""文档测试项描述和测试方法解析"""
def parse_wdsc(content: str):
"""输入为文档审查的测试项描述和测试方法"""
# 对content进行处理
content_list = []
for para in content.split('\n'):
step_dict = {'content': '', 'yuqi': ''}
if "" in para or "" in para:
step_dict['content'] = para.replace(';', '').replace('', '')
step_dict['yuqi'] = '被审查文档内容完整、描述准确、格式规范、文文一致'
content_list.append(step_dict)
return content_list