🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
Update test cases
mannaandpoemf460771978c9
diff --git a/tests/metagpt/test_incremental_dev.py b/tests/metagpt/test_incremental_dev.pyindex 223b0fb10..44478adc9 100644--- a/tests/metagpt/test_incremental_dev.py+++ b/tests/metagpt/test_incremental_dev.py@@ -100,12 +100,12 @@ def test_refined_word_cloud():raise e-def test_refined_dice_simulator_1():- project_path = f"{DATA_PATH}/dice_simulator_new"+def test_refined_gomoku():+ project_path = f"{DATA_PATH}/Gomoku"check_or_create_base_tag(project_path)args = [- "Add functionality to view the history of scores. The original dice rolling game could only display the current game result, but the new requirement allows players to view the history of scores",+ "Add an AI opponent with fixed difficulty levels. Currently, the game only allows players to compete against themselves. Implement an AI algorithm that can playing with player. This will provide a more engaging and challenging experience for players.","--inc","--project-path",project_path,@@ -122,17 +122,17 @@ def test_refined_dice_simulator_1():else:assert Truetry:- subprocess.run(["git", "tag", "refine_1"], check=True)+ subprocess.run(["git", "tag", "refine"], check=True)except subprocess.CalledProcessError as e:raise e-def test_refined_dice_simulator_2():+def test_refined_dice_simulator_1():project_path = f"{DATA_PATH}/dice_simulator_new"check_or_create_base_tag(project_path)args = [- "Add functionality to view the history of scores and perform statistical analysis on them. The original dice rolling game could only display the current game result, but the new requirement allows players to view the history of scores and display the statistical analysis results of the current score",+ "Add functionality to view the history of scores. The original dice rolling game could only display the current game result, but the new requirement allows players to view the history of scores","--inc","--project-path",project_path,@@ -149,17 +149,17 @@ def test_refined_dice_simulator_2():else:assert Truetry:- subprocess.run(["git", "tag", "refine_2"], check=True)+ subprocess.run(["git", "tag", "refine_1"], check=True)except subprocess.CalledProcessError as e:raise e-def test_refined_dice_simulator_3():+def test_refined_dice_simulator_2():project_path = f"{DATA_PATH}/dice_simulator_new"check_or_create_base_tag(project_path)args = [- "Add functionality to set the number of sides on a die; Add functionality to view the history of scores; Add functionality to perform statistical analysis on all scores. The original dice rolling game could roll the dice multiple times and only display the current game result. But the new requirement add function that players to customize the number of sides of the dice and to view the history of scores and display the statistical analysis",+ "Add functionality to view the history of scores and perform statistical analysis on them. The original dice rolling game could only display the current game result, but the new requirement allows players to view the history of scores and display the statistical analysis results of the current score","--inc","--project-path",project_path,@@ -176,7 +176,7 @@ def test_refined_dice_simulator_3():else:assert Truetry:- subprocess.run(["git", "tag", "refine_3"], check=True)+ subprocess.run(["git", "tag", "refine_2"], check=True)except subprocess.CalledProcessError as e:raise e@@ -316,33 +316,6 @@ def test_refined_snake_game_2():raise e-def test_refined_gomoku():- project_path = f"{DATA_PATH}/Gomoku"- check_or_create_base_tag(project_path)-- args = [- "Add an AI opponent with fixed difficulty levels. Currently, the game only allows players to compete against themselves. Implement an AI algorithm that can playing with player. This will provide a more engaging and challenging experience for players.",- "--inc",- "--project-path",- project_path,- ]- result = runner.invoke(app, args)- logger.info(result)- logger.info(result.output)- if "Aborting" in result.output:- assert False- else:- tag = subprocess.run(["git", "describe", "--tags"], capture_output=True, text=True).stdout.strip()- if tag == "base":- assert False- else:- assert True- try:- subprocess.run(["git", "tag", "refine"], check=True)- except subprocess.CalledProcessError as e:- raise e--def check_or_create_base_tag(project_path):# Change the current working directory to the specified project pathos.chdir(project_path)