fix information retrieval challenge (#4448)

This commit is contained in:
merwanehamadi
2023-05-27 18:26:30 -07:00
committed by GitHub
parent 03036c1bd6
commit 44f6d946f5
6 changed files with 8 additions and 29 deletions

View File

@@ -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.