From 4fac6f656ae987ad9b0d408b7aa6af732ee568cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 2 Feb 2024 11:56:18 +0100 Subject: [PATCH] fix: avoid call on internal method... --- tests/testlive_security.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testlive_security.py b/tests/testlive_security.py index 9e4e0d034..fba5849f2 100644 --- a/tests/testlive_security.py +++ b/tests/testlive_security.py @@ -116,9 +116,9 @@ def send(api: PyMISP, request_type: str, url: str, data=None, check_errors: bool if data is None: data = {} response = api._prepare_request(request_type, url, data=data) - response = api._check_json_response(response) + r = response.json() if check_errors: - check_response(response) + check_response(r) return response