Change client_request so its kwargs look more like url_for

This commit is contained in:
Leo Hemsted
2017-06-19 12:31:14 +01:00
parent 20bb34849d
commit 580c225ca2
4 changed files with 15 additions and 16 deletions

View File

@@ -96,6 +96,7 @@ class Development(Config):
class Test(Development):
DEBUG = True
TESTING = True
STATSD_ENABLED = True
WTF_CSRF_ENABLED = False
CSV_UPLOAD_BUCKET_NAME = 'test-notifications-csv-upload'

View File

@@ -55,5 +55,5 @@ class NotificationApiClient(NotifyAdminAPIClient):
params=params
)
def get_notification(self, service_id, notification_id):m
def get_notification(self, service_id, notification_id):
return self.get(url='/service/{}/notifications/{}'.format(service_id, notification_id))