mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-23 08:54:24 +01:00
fix information retrieval challenge (#4448)
This commit is contained in:
@@ -48,24 +48,6 @@ def generate_noise(noise_size: int) -> str:
|
||||
)
|
||||
|
||||
|
||||
def run_multiple_times(times: int) -> Callable:
|
||||
"""
|
||||
Decorator that runs a test function multiple times.
|
||||
|
||||
:param times: The number of times the test function should be executed.
|
||||
"""
|
||||
|
||||
def decorator(test_func: Callable[..., Any]) -> Callable[..., Any]:
|
||||
@wraps(test_func)
|
||||
def wrapper(*args: Tuple[Any, ...], **kwargs: Dict[str, Any]) -> None:
|
||||
for _ in range(times):
|
||||
test_func(*args, **kwargs)
|
||||
|
||||
return wrapper
|
||||
|
||||
return decorator
|
||||
|
||||
|
||||
def setup_mock_input(monkeypatch: pytest.MonkeyPatch, cycle_count: int) -> None:
|
||||
"""
|
||||
Sets up the mock input for testing.
|
||||
|
||||
Reference in New Issue
Block a user