vsecades / AbuseIpDb

AbuseIpDB - Wrapper around the AbuseIPDb service API
MIT License
15 stars 4 forks source link

Validate the return values #8

Closed Eorhim closed 4 years ago

Eorhim commented 4 years ago

The tests make two assumtions:

  1. The response is valid JSON
  2. We currently want a Python dictionary or list of dictionaries

This is only implemented for APIv2, because if someone switches to this new version of the package, they will still have the APIv1 in active use. If they want to use APIv2 they have to change more things anyway. Still this gives them a step-by-step migration path.