Skip to content

Commit

Permalink
Add locust tests for ADRs and Admin Fines
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeaufort committed Sep 12, 2018
1 parent 836b5a4 commit 52fcbeb
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions locustfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 52fcbeb

Please sign in to comment.