Skip to content

Commit

Permalink
Update mock response in dry-run mode to be compatible with get_geojso…
Browse files Browse the repository at this point in the history
…n_observations()
  • Loading branch information
JWCook committed Jun 16, 2020
1 parent bf61245 commit ca95fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyinaturalist/api_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Mock response content to return in dry-run mode
MOCK_RESPONSE = Mock(spec=requests.Response)
MOCK_RESPONSE.json.return_value = {"results": ["nodata"]}
MOCK_RESPONSE.json.return_value = {"results": [], "total_results": 0}

logger = getLogger(__name__)

Expand Down

0 comments on commit ca95fd5

Please sign in to comment.