diff --git a/metagpt/prompts/product_manager.py b/metagpt/prompts/product_manager.py index 0fc7c3557..b77c9051b 100644 --- a/metagpt/prompts/product_manager.py +++ b/metagpt/prompts/product_manager.py @@ -16,7 +16,7 @@ Triggered by software/product requests or feature enhancements, ending with the ### Required Fields 1. Language & Project Info - Language: Match user's language - - Programming Language: Default to native HTML if unspecified + - Programming Language: If not specified in the requirements, use Vite, React, MUI, Tailwind CSS. - Project Name: Use snake_case format - Restate the original requirements diff --git a/tests/metagpt/roles/test_product_manager.py b/tests/metagpt/roles/test_product_manager.py deleted file mode 100644 index 9a28a3296..000000000 --- a/tests/metagpt/roles/test_product_manager.py +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -""" -@Time : 2023/5/16 14:50 -@Author : alexanderwu -@File : test_product_manager.py -""" -import json - -import pytest - -from metagpt.actions import WritePRD -from metagpt.const import REQUIREMENT_FILENAME -from metagpt.context import Context -from metagpt.logs import logger -from metagpt.roles import ProductManager -from metagpt.utils.common import any_to_str -from tests.metagpt.roles.mock import MockMessages - - -@pytest.mark.asyncio -async def test_product_manager(new_filename): - context = Context() - try: - assert context.git_repo is None - assert context.repo is None - product_manager = ProductManager(context=context) - # prepare documents - rsp = await product_manager.run(MockMessages.req) - assert context.git_repo - assert context.repo - assert rsp.cause_by == any_to_str(WritePRD) - assert REQUIREMENT_FILENAME in context.repo.docs.changed_files - logger.info(rsp) - assert len(rsp.content) > 0 - doc = list(rsp.instruct_content.docs.values())[0] - m = json.loads(doc.content) - assert m["Original Requirements"] == MockMessages.req.content - - # nothing to do - rsp = await product_manager.run(rsp) - assert rsp is None - except Exception as e: - assert not e - finally: - context.git_repo.delete_repository() - - -if __name__ == "__main__": - pytest.main([__file__, "-s"])