From 11a8bcfcacc7b7fa22ea8ba4321432743cd2b560 Mon Sep 17 00:00:00 2001 From: Romazes Date: Sat, 21 Sep 2024 01:36:47 +0300 Subject: [PATCH] test:refactor: test_auth0_client --- tests/components/api/test_auth0_client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/components/api/test_auth0_client.py b/tests/components/api/test_auth0_client.py index aabd82af..eb5f58d1 100644 --- a/tests/components/api/test_auth0_client.py +++ b/tests/components/api/test_auth0_client.py @@ -11,16 +11,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os import responses +from unittest import mock from lean.constants import API_BASE_URL -from components.api.test_clients import create_api_client +from lean.components.api.api_client import APIClient +from lean.components.util.http_client import HTTPClient @responses.activate def test_auth0client() -> None: - os.environ.setdefault("QC_API", "local") - api_clint = create_api_client() + api_clint = APIClient(mock.Mock(), HTTPClient(mock.Mock()), user_id="123", api_token="abc") responses.add( responses.POST,