Skip to content

Commit

Permalink
[#56] WIP: Update test copa scrape mocked endpoints to match master b…
Browse files Browse the repository at this point in the history
…ranch version of endpoints
  • Loading branch information
tw-jeff-burroughs committed Sep 23, 2019
1 parent 1b9ca8c commit 6e4bb63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/api/test_copa_scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ def json(self):
return MockResponse({"key1": "value1"}, 200, "bubbles")
elif kwargs == {"url": SCRAPE_URL + ".csv?$where=assignment!=\"COPA\""}:
return MockResponse({"key1": "value1"}, 200, "bubbles")
elif kwargs == {"url": SCRAPE_URL + ".csv?$select=log_no,complaint_date,beat&$where=assignment!=\"COPA\""}:
elif kwargs == {"url": SCRAPE_URL + ".csv?$select=log_no,complaint_date,beat&$where=assignment=\"COPA\""}:
return MockResponse({"key1": "value1"}, 200, "bubbles")
elif kwargs == {"url": SCRAPE_URL + ".csv?$select=log_no,assignment,case_type,current_status,current_category,"
"finding_code,police_shooting,race_of_complainants,sex_of_complainants,age_of_complainants,"
"race_of_involved_officers,sex_of_involved_officers,age_of_involved_officers,"
"years_on_force_of_officers,complaint_hour,complaint_day,complaint_month&"
"$where=assignment!=\"COPA\""}:
"$where=assignment=\"COPA\""}:
return MockResponse({"key1": "value1"}, 200, "bubbles")

return MockResponse(None, 404, None)
Expand Down

0 comments on commit 6e4bb63

Please sign in to comment.