From a50986ac80ba442fe36af6171b863e4d118d5d65 Mon Sep 17 00:00:00 2001 From: Laura Beaufort <31420082+lbeaufort@users.noreply.github.com> Date: Tue, 11 Sep 2018 21:34:08 -0400 Subject: [PATCH] Add locust tests for ADRs and Admin Fines --- locustfile.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/locustfile.py b/locustfile.py index 812fad9211..6dd8322cc1 100644 --- a/locustfile.py +++ b/locustfile.py @@ -194,14 +194,28 @@ def load_legal_documents_search(self, term=None): self.client.get('legal/search', name='legal_search', params=params) @locust.task - def get_mur(self, term=None): + def get_mur(self): params = { 'api_key': API_KEY, } self.client.get('legal/docs/murs/7074', name='legal_get_mur', params=params) @locust.task - def get_ao(self, term=None): + def get_adr(self): + params = { + 'api_key': API_KEY, + } + self.client.get('legal/docs/adrs/668', name='legal_get_adr', params=params) + + @locust.task + def get_admin_fine(self): + params = { + 'api_key': API_KEY, + } + self.client.get('legal/docs/admin_fines/2274', name='legal_get_admin_fine', params=params) + + @locust.task + def get_ao(self): params = { 'api_key': API_KEY, }