mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 06:24:20 +01:00
can now put file extensions or names in files data
This commit is contained in:
@@ -23,10 +23,12 @@ class TestWriteFile(BasicChallenge):
|
||||
)
|
||||
@pytest.mark.depends(name="test_write_file")
|
||||
def test_write_file(self, workspace):
|
||||
file = self.open_file(workspace, data.ground.files[0])
|
||||
files_contents = self.open_files(workspace, data.ground.files)
|
||||
|
||||
score = self.scoring(file, data.ground)
|
||||
scores = []
|
||||
for file_content in files_contents:
|
||||
score = self.scoring(file_content, data.ground)
|
||||
print("Your score is:", score)
|
||||
scores.append(score)
|
||||
|
||||
print("You score is:", score)
|
||||
|
||||
assert score
|
||||
assert 1 in scores
|
||||
|
||||
Reference in New Issue
Block a user