Closed
Labels
debtCode quality improvement or decrease of technical debt.Code quality improvement or decrease of technical debt.t-toolingIssues with this label are in the ownership of the tooling team.Issues with this label are in the ownership of the tooling team.
Description
Currently, there are 3 different implementations of HttpClient. All of them have their own test file with duplicated test cases. Refactor the same tests to accept HttpClient (or some factory method) as test parameter to achieve something like this:
@pytest.mark.parametrize("http_client", [
ImpitHttpClient(),
CurlImpersonateHttpClient(),
HttpxHttpClient(),
])
def some_http_client_test(http_client: HttpClient):
...
Reacted by Vlada Dusek
Metadata
Metadata
Assignees
Labels
debtCode quality improvement or decrease of technical debt.Code quality improvement or decrease of technical debt.t-toolingIssues with this label are in the ownership of the tooling team.Issues with this label are in the ownership of the tooling team.
Activity
chore: Refactor `HttpClient` implementations tests (#1299)