|
- from chatGPT_Web import format_skill_list_movie
-
-
-
-
- def test_happy_path_list_not_empty():
- list = {"key1": "value1", "key2": "value2"}
- msg = "This is a message"
- expected_result = 'answer only in a mark down cell, find the closest sentence . The format is\n' + \
- '"""\n' + \
- '[{"msg": <sentence>}]\n' + \
- '"""\n' + \
- 'Returns Null if there is no matching sentence.The format is\n' + \
- '"""\n' + \
- '[{"msg":"Null"}]\n' + \
- '"""\n' + \
- '我提供的句子如下:\n' + \
- '[{1、key1},{2、key2},]' + \
- '不附加说明和解释的文字。\n' + \
- 'my paragraph is:\n"""This is a message"""'
- print(expected_result)
- print("=====================================")
- format_skill_list_movie(list, msg)
- print("=====================================")
- assert format_skill_list_movie(list, msg) == expected_result
-
-
-
-
- if __name__ == '__main__':
- test_happy_path_list_not_empty()
|