Files
Auto-GPT/agbenchmark/challenges/memory/m1/m1_test.py

26 lines
687 B
Python

from typing import Any, Dict
import pytest
from agbenchmark.challenges.memory.memory import MemoryChallenge
class TestBasicMemory(MemoryChallenge):
"""The first memory challenge"""
@pytest.mark.depends(name="test_basic_memory")
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