From 93b238f78c5dcac02f3714a5ad0be61e65df3b82 Mon Sep 17 00:00:00 2001 From: 1yam Date: Fri, 16 Aug 2024 11:37:37 +0200 Subject: [PATCH] Fix: Mocking attribute `_http_session` failed Due to renaming in d2f56b024cd3cff5d725293e786804b61ff791f2 --- tests/unit/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index 4205230b..c1c56fcd 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -274,7 +274,7 @@ def get(self, *_args, **_kwargs): http_session = MockHttpSession() client = AlephHttpClient(api_server="http://localhost") - client.http_session = http_session + client._http_session = http_session return client