Update test_increment.py for "--project-path"

This commit is contained in:
mannaandpoem 2024-01-03 21:20:36 +08:00
parent 9435352031
commit 21d8b48e8e

View file

@ -8,7 +8,6 @@
import pytest
from typer.testing import CliRunner
from metagpt.const import DEFAULT_WORKSPACE_ROOT
from metagpt.logs import logger
from metagpt.startup import app
@ -20,7 +19,7 @@ def test_refine_simple_calculator():
"Add subtraction, multiplication and division operations to the calculator. The current calculator can only perform basic addition operations, and it is necessary to introduce subtraction, multiplication, division operation into the calculator",
"--inc",
"--project-path",
f"{DEFAULT_WORKSPACE_ROOT}/simple_add_calculator",
"data/simple_add_calculator",
"--project-name",
"simple_calculator",
]
@ -34,7 +33,7 @@ def test_refine_number_guessing_game():
"Adding graphical interface functionality to enhance the user experience in the number-guessing game. The existing number-guessing game currently relies on command-line input for numbers. The goal is to introduce a graphical interface to improve the game's usability and visual appeal"
"--inc",
"--project-path",
f"{DEFAULT_WORKSPACE_ROOT}/number_guessing_game",
"data/number_guessing_game",
"--project-name",
"number_guessing_game",
]
@ -48,7 +47,7 @@ def test_refine_dice_simulator_1():
"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",
f"{DEFAULT_WORKSPACE_ROOT}/dice_simulator_new",
"data/dice_simulator_new",
"--project-name",
"dice_simulator_1",
]
@ -62,7 +61,7 @@ def test_refine_dice_simulator_2():
"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",
f"{DEFAULT_WORKSPACE_ROOT}/dice_simulator_new",
"data/dice_simulator_new",
"--project-name",
"dice_simulator_2",
]
@ -76,7 +75,7 @@ def test_refine_dice_simulator_3():
"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"
"--inc",
"--project-path",
f"{DEFAULT_WORKSPACE_ROOT}/dice_simulator_new",
"data/dice_simulator_new",
"--project-name",
"dice_simulator_3",
]
@ -90,7 +89,7 @@ def test_refine_pygame_2048_1():
"Changed score target for 2048 game from 2048 to 4096. Please change the game's score target from 2048 to 4096, and change the interface size from 4*4 to 8*8"
"--inc",
"--project-path",
f"{DEFAULT_WORKSPACE_ROOT}/pygame_2048",
"data/pygame_2048",
"--project-name",
"pygame_2048_1",
]
@ -104,7 +103,7 @@ def test_refine_pygame_2048_2():
"Display the history score of the player in the 2048 game. Add a record board that can display players' historical score records so that players can trace their scores"
"--inc",
"--project-path",
f"{DEFAULT_WORKSPACE_ROOT}/pygame_2048",
"data/pygame_2048",
"--project-name",
"pygame_2048_2",
]
@ -118,7 +117,7 @@ def test_refine_pygame_2048_3():
"Add limited time mode. The original game only had a default classic mode. The improved game should be able to support limited-time mode, allowing users to choose classic mode or limited-time mode from the available options before starting the game."
"--inc",
"--project-path",
f"{DEFAULT_WORKSPACE_ROOT}/pygame_2048",
"data/pygame_2048",
"--project-name",
"pygame_2048_3",
]
@ -132,7 +131,7 @@ def test_refine_word_cloud_1():
"Add a feature to remove deprecated words from the word cloud. The current word cloud generator does not support removing deprecated words. Now, The word cloud generator should support removing deprecated words. Customize deactivated words to exclude them from word cloud. Let users see all the words in the text file, and allow users to select the words they want to remove."
"--inc",
"--project-path",
f"{DEFAULT_WORKSPACE_ROOT}/word_cloud",
"data/word_cloud",
"--project-name",
"word_cloud_1",
]
@ -146,7 +145,7 @@ def test_refine_word_cloud_2():
"Add a feature to customize the resolution of the word cloud.The new version allows users to customize the size and resolution of the generated word cloud after uploading a text file, and then generate the word cloud."
"--inc",
"--project-path",
f"{DEFAULT_WORKSPACE_ROOT}/word_cloud",
"data/word_cloud",
"--project-name",
"word_cloud_2",
]