mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-05 14:55:18 +02:00
add expected rsp and skip unimportant
This commit is contained in:
parent
160d523389
commit
033dc6bd7d
3 changed files with 18 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -149,5 +149,16 @@ async def test_debug_error():
|
|||
rsp = await debug_error.run()
|
||||
|
||||
assert "class Player" in rsp # rewrite the same class
|
||||
# a key logic to rewrite to (original one is "if self.score > 12")
|
||||
# Problematic code:
|
||||
# ```
|
||||
# if self.score > 21 and any(card.rank == 'A' for card in self.hand):
|
||||
# self.score -= 10
|
||||
# ```
|
||||
# Should rewrite to (used "gpt-3.5-turbo-1106"):
|
||||
# ```
|
||||
# ace_count = sum(1 for card in self.hand if card.rank == 'A')
|
||||
# while self.score > 21 and ace_count > 0:
|
||||
# self.score -= 10
|
||||
# ace_count -= 1
|
||||
# ```
|
||||
assert "while self.score > 21" in rsp
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ def search_engine_server():
|
|||
meilisearch_process.wait()
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_meilisearch(search_engine_server):
|
||||
# Prerequisites
|
||||
# https://www.meilisearch.com/docs/learn/getting_started/installation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue