Skip to content

Commit

Permalink
Add type stats per council to API
Browse files Browse the repository at this point in the history
Fixes #1001
  • Loading branch information
mattyweb committed Mar 7, 2021
1 parent a81233d commit e1db071
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions server/api/tests/integration/test_api_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ def test_service_requests_type(client):


def test_service_requests_council(client):
url = "/requests?start_date=2020-01-01&end_date=2020-01-02&council_id=27"
url = "/requests?start_date=2020-01-01&end_date=2020-01-02&council_id=28"
response = client.get(url)
assert response.status_code == 200
assert len(response.json()) == 39


def test_service_requests_all(client):
url = "/requests?start_date=2020-01-01&end_date=2020-01-02&type_id=2&council_id=27"
url = "/requests?start_date=2020-01-01&end_date=2020-01-02&type_id=2&council_id=28"
response = client.get(url)
assert response.status_code == 200
assert len(response.json()) == 3
Expand All @@ -49,7 +49,7 @@ def test_updated_service_requests(client):


def test_updated_service_requests_council(client):
url = "/requests/updated?start_date=2020-01-01&end_date=2020-01-02&council_id=27"
url = "/requests/updated?start_date=2020-01-01&end_date=2020-01-02&council_id=28"
response = client.get(url)
assert response.status_code == 200
assert len(response.json()) == 39
Expand Down Expand Up @@ -115,7 +115,7 @@ def test_service_request_pins_multiple(client):
"startDate": "2020-01-01",
"endDate": "2020-01-03",
"councilIds": [
1, 2, 3, 4
1, 2, 4, 5
],
"typeIds": [
1, 2
Expand Down
10 changes: 5 additions & 5 deletions server/api/tests/integration/test_api_shim.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ def test_map_pins(client):
"startDate": "01/01/2020",
"endDate": "01/02/2020",
"ncList": [
9,
14,
16,
32,
37,
3,
10,
15,
17,
33,
38,
40,
41,
Expand Down

0 comments on commit e1db071

Please sign in to comment.