mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-04 14:54:32 +01:00
Get rid of get file path by using the data.json convention to store the challenge information (#67)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import os
|
||||
from typing import Any, Dict
|
||||
|
||||
import pytest
|
||||
@@ -9,11 +8,6 @@ from agbenchmark.challenges.code.code import CodeChallenge
|
||||
class TestDebugSimpleTypoWithGuidance(CodeChallenge):
|
||||
"""The first memory challenge"""
|
||||
|
||||
def get_file_path(self) -> str: # all tests must implement this method
|
||||
return os.path.join(
|
||||
os.path.dirname(__file__), "debug_simple_typo_with_guidance_data.json"
|
||||
)
|
||||
|
||||
@pytest.mark.depends(name="test_debug_simple_typo_with_guidance")
|
||||
def test_method(self, config: Dict[str, Any]) -> None:
|
||||
self.setup_challenge(config)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import os
|
||||
from typing import Any, Dict
|
||||
|
||||
import pytest
|
||||
@@ -9,9 +8,6 @@ from agbenchmark.challenges.code.code import CodeChallenge
|
||||
class TestDebugSimpleTypoWithoutGuidance(CodeChallenge):
|
||||
"""The first memory challenge"""
|
||||
|
||||
def get_file_path(self) -> str: # all tests must implement this method
|
||||
return os.path.join(os.path.dirname(__file__), "d2_data.json")
|
||||
|
||||
@pytest.mark.depends(
|
||||
name="test_debug_simple_typo_without_guidance",
|
||||
depends=["test_debug_simple_typo_with_guidance"],
|
||||
|
||||
Reference in New Issue
Block a user