mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-19 06:54:22 +01:00
moving run agent to tests & agnostic run working
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import pytest
|
||||
from agbenchmark.challenges.retrieval.Retrieval import RetrievalChallenge
|
||||
from agbenchmark.challenges.define_task_types import ChallengeData, Ground
|
||||
import os
|
||||
|
||||
|
||||
@@ -10,8 +8,9 @@ class TestRetrieval1(RetrievalChallenge):
|
||||
def get_file_path(self) -> str: # all tests must implement this method
|
||||
return os.path.join(os.path.dirname(__file__), "r1_data.json")
|
||||
|
||||
def test_method(self, workspace):
|
||||
files_contents = self.open_files(workspace, self.data.ground.files)
|
||||
def test_method(self, config):
|
||||
self.setup_challenge(config)
|
||||
files_contents = self.open_files(config["workspace"], self.data.ground.files)
|
||||
|
||||
scores = []
|
||||
for file_content in files_contents:
|
||||
|
||||
Reference in New Issue
Block a user