mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-25 18:04:28 +01:00
29 lines
793 B
Python
29 lines
793 B
Python
from typing import Any, Dict
|
|
|
|
import pytest
|
|
|
|
from agbenchmark.challenges.code.code import CodeChallenge
|
|
|
|
|
|
class TestDebugSimpleTypoWithoutGuidance(CodeChallenge):
|
|
"""The first memory challenge"""
|
|
|
|
@pytest.mark.depends(
|
|
name="test_debug_simple_typo_without_guidance",
|
|
depends=["test_debug_simple_typo_with_guidance"],
|
|
)
|
|
def test_method(self, config: Dict[str, Any]) -> None:
|
|
self.setup_challenge(config)
|
|
|
|
files_contents = self.get_artifacts_out(
|
|
config["workspace"], self.data.ground.files
|
|
)
|
|
|
|
scores = []
|
|
for file_content in files_contents:
|
|
score = self.scoring(file_content, self.data.ground)
|
|
print("Your score is:", score)
|
|
scores.append(score)
|
|
|
|
assert 1 in scores
|