From f205abea0e3ab8e418204a327011b78b02e3a836 Mon Sep 17 00:00:00 2001 From: dishantsethi Date: Mon, 12 Aug 2024 14:36:00 +0530 Subject: [PATCH] remaining for calls remaining function --- tests/test_diarize.py | 2 +- willisapi_client/services/diarize/__init__.py | 2 +- willisapi_client/services/diarize/diarize_utils.py | 2 +- .../{willisdiarize.py => willisdiarize_call_remaining.py} | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename willisapi_client/services/diarize/{willisdiarize.py => willisdiarize_call_remaining.py} (92%) diff --git a/tests/test_diarize.py b/tests/test_diarize.py index 4987c58..600164e 100644 --- a/tests/test_diarize.py +++ b/tests/test_diarize.py @@ -1,6 +1,6 @@ from unittest.mock import patch -from willisapi_client.services.diarize.willisdiarize import ( +from willisapi_client.services.diarize.willisdiarize_call_remaining import ( willis_diarize_call_remaining, ) diff --git a/willisapi_client/services/diarize/__init__.py b/willisapi_client/services/diarize/__init__.py index 7b0f2fa..27f532c 100644 --- a/willisapi_client/services/diarize/__init__.py +++ b/willisapi_client/services/diarize/__init__.py @@ -1,5 +1,5 @@ # website: https://www.brooklyn.health -from willisapi_client.services.diarize.willisdiarize import ( +from willisapi_client.services.diarize.willisdiarize_call_remaining import ( willis_diarize_call_remaining, ) diff --git a/willisapi_client/services/diarize/diarize_utils.py b/willisapi_client/services/diarize/diarize_utils.py index 31bc09b..7c2e21c 100644 --- a/willisapi_client/services/diarize/diarize_utils.py +++ b/willisapi_client/services/diarize/diarize_utils.py @@ -5,7 +5,7 @@ class DiarizeUtils: - def request(url, headers, try_number): + def request_call_remaining(url, headers, try_number): """ ------------------------------------------------------------------------------------------------------ Class: DiarizeUtils diff --git a/willisapi_client/services/diarize/willisdiarize.py b/willisapi_client/services/diarize/willisdiarize_call_remaining.py similarity index 92% rename from willisapi_client/services/diarize/willisdiarize.py rename to willisapi_client/services/diarize/willisdiarize_call_remaining.py index d908d53..fb05d86 100644 --- a/willisapi_client/services/diarize/willisdiarize.py +++ b/willisapi_client/services/diarize/willisdiarize_call_remaining.py @@ -27,7 +27,7 @@ def willis_diarize_call_remaining(key: str, **kwargs): headers = wc.get_headers() headers["Authorization"] = key - response = DiarizeUtils.request(url, headers, try_number=1) + response = DiarizeUtils.request_call_remaining(url, headers, try_number=1) if response: logger.info(response["message"]) return response["message"]