Inherit don’t duplicate API client constructor

This removes some code which is duplicative and obscure (ie it’s not
very clear why we do `"a" * 73` even though there is a Very Good Reason
for doing so).
This commit is contained in:
Chris Hill-Scott
2019-01-29 11:12:33 +00:00
parent eae0a5a632
commit 1d3a4e5043
22 changed files with 8 additions and 63 deletions

View File

@@ -3,8 +3,6 @@ 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)