From 968a516f76b8821bc54fcd13f4990a404bccbf00 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Sat, 6 Apr 2024 15:06:59 +0200 Subject: [PATCH] Remove unused helpers --- tests/utils.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index a565c96..06e3d5b 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -9,24 +9,6 @@ from typing import Callable, TypeVar T = TypeVar("T") -class MockResponse: - def __init__(self, response_data={}, ok=True, is_redirect=False): - self.response_data = response_data - self.content = response_data - self.ok = ok - self.is_redirect = is_redirect - - def raise_for_status(self): - pass - - def json(self): - return self.response_data - - -def retval(val): - return lambda *args, **kwargs: val - - def run_with_retries(fn: Callable[..., T]) -> T: """ Run the the given function repeatedly until it finishes without raising an