Skip to content

Commit

Permalink
Improve writing test prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
kagami-l committed May 24, 2024
1 parent b0fe0b4 commit 1a303b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion merico/unit_tests/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

sys.path.append(os.path.dirname(__file__))

from cache import LocalCache
from i18n import TUILanguage, get_translation
from model import (
FuncToTest,
Expand All @@ -16,6 +15,7 @@
)
from ut_workflow import UnitTestsWorkflow

from cache import LocalCache
from lib.chatmark import Step
from lib.ide_service import IDEService

Expand Down
1 change: 1 addition & 0 deletions merico/unit_tests/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
5. If two or more test cases share the same setup, you should reuse the setup code.
6. If two or more test cases share the same test logic, you should reuse the test logic.
7. Use TODO comments or FIXME comments to indicate any missing parts of the code or any parts that need to be improved.
8. Write as much production-ready code as possible, leaving less TODO comments or FIXME comments.
{additional_requirements}
Expand Down
2 changes: 1 addition & 1 deletion merico/unit_tests/ut_workflow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import Dict, List, Tuple

from cache import LocalCache
from find_context import (
Context,
Position,
Expand All @@ -18,6 +17,7 @@
from tools.file_util import retrieve_file_content
from write_tests import write_and_print_tests

from cache import LocalCache
from lib.chatmark import Checkbox, Form, Step, TextEditor


Expand Down

0 comments on commit 1a303b4

Please sign in to comment.