Modify notifications_python_client

This changeset modifies the notifications_python_client we pulled in to no longer reference the UK Notify system.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2025-07-29 17:43:36 -04:00
parent dbed1368d9
commit 1d61355663

View File

@@ -3,6 +3,8 @@ import logging
import time
import urllib.parse
from os import getenv
import requests
from notifications_python_client import __version__
@@ -11,6 +13,8 @@ from notifications_python_client.errors import HTTPError, InvalidResponse
logger = logging.getLogger(__name__)
API_PUBLIC_URL = getenv("API_PUBLIC_URL", "localhost")
class BaseAPIClient:
"""
@@ -20,7 +24,7 @@ class BaseAPIClient:
"""
def __init__(
self, api_key, base_url="https://api.notifications.service.gov.uk", timeout=30
self, api_key, base_url=API_PUBLIC_URL, timeout=30
):
"""
Initialise the client