Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

add test_write_code_with_udfs_no_udf_found.

刘棒棒3fc5080b811f
diff --git a/tests/metagpt/actions/test_write_analysis_code.py b/tests/metagpt/actions/test_write_analysis_code.py
index c3e7adc1b..71628d439 100644
--- a/tests/metagpt/actions/test_write_analysis_code.py
+++ b/tests/metagpt/actions/test_write_analysis_code.py
@@ -323,3 +323,11 @@ async def test_write_code_with_udfs():
output, output_type = await ep.run(rsp)
assert output_type is True
logger.info(output)
+
+
+async def test_write_code_with_udfs_no_udf_found():
+ wudf = WriteCodeWithUDFs()
+ rsp = await wudf.run("Identify if there is a dog in the picture.")
+ logger.info(rsp)
+ assert 'No udf found' in rsp