Skip to content

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

feat: +unit test

莘权 马ef9bb219e168
diff --git a/tests/data/pdf/02-CSS.pdf b/tests/data/pdf/02-CSS.pdf
new file mode 100644
index 000000000..ee874340b
Binary files /dev/null and b/tests/data/pdf/02-CSS.pdf differ
diff --git a/tests/metagpt/tools/libs/test_editor.py b/tests/metagpt/tools/libs/test_editor.py
index a148ec7ed..9a6e4b62f 100644
--- a/tests/metagpt/tools/libs/test_editor.py
+++ b/tests/metagpt/tools/libs/test_editor.py
@@ -721,6 +721,7 @@ async def test_index_repo():
"What principle is introduced by the author to explain the conditions necessary for the emergence of complexity?",
TEST_DATA_PATH / "pdf/9781444323498.ch2_1.pdf",
),
+ ("行高的继承性的代码示例是?", TEST_DATA_PATH / "pdf/02-CSS.pdf"),
],
)
async def test_similarity_search(query, filename):