mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-08 12:23:54 -05:00
This avoids the annoying problem where you can’t import a client unless the app has already been initialised.
14 lines
288 B
Python
14 lines
288 B
Python
|
|
from app.notify_client import NotifyAdminAPIClient
|
|
|
|
|
|
class StatusApiClient(NotifyAdminAPIClient):
|
|
def __init__(self):
|
|
super().__init__("a" * 73, "b")
|
|
|
|
def get_status(self, *params):
|
|
return self.get(url='/_status', *params)
|
|
|
|
|
|
status_api_client = StatusApiClient()
|