fix test_debug_code

This commit is contained in:
yzlin 2024-01-30 22:20:34 +08:00
parent ede04f20f6
commit 274747e72f
3 changed files with 40 additions and 5 deletions

File diff suppressed because one or more lines are too long

View file

@ -48,7 +48,7 @@ def sort_array(arr):
async def test_debug_code():
debug_context = Message(content=DebugContext)
new_code = await DebugCode().run(context=debug_context, code=CODE, runtime_result=ErrorStr)
assert "def sort_array(arr)" in new_code
assert "def sort_array(arr)" in new_code["code"]
def test_messages_to_str():