diff --git a/libs/py_core/project.json b/libs/py_core/project.json index 7991e22..600786a 100644 --- a/libs/py_core/project.json +++ b/libs/py_core/project.json @@ -60,6 +60,13 @@ "command": "poetry run pytest tests/", "cwd": "libs/py_core" } + }, + "cli": { + "executor": "@nxlv/python:run-commands", + "options": { + "command": "poetry run python test_cli.py", + "cwd": "libs/py_core" + } } }, "tags": [] diff --git a/libs/py_core/py_core/system/task/stringify.py b/libs/py_core/py_core/system/task/stringify.py index 42bd83e..7dad38f 100644 --- a/libs/py_core/py_core/system/task/stringify.py +++ b/libs/py_core/py_core/system/task/stringify.py @@ -3,7 +3,7 @@ def convert_dialogue_to_str(dialogue: Dialogue, params) -> str: script = "\n".join([ - f"\t{'Parent' if message.speaker == DialogueRole.Parent else 'Child'}: {message.content if isinstance(message.content, str) else ', '.join([card.simple_str() for card in message.content])}" + f"\t{'Parent' if message.speaker == DialogueRole.Parent else 'Child'}: {message.content if isinstance(message.content, str) else ', '.join([card.text for card in message.content])}" for message in dialogue]) result = f"""