rolfberkenbosch / meteoalert-api

MIT License
13 stars 11 forks source link

Better error handling plus updated tests #23

Closed pskowronek closed 3 years ago

pskowronek commented 3 years ago
  1. better error handling like checking returned status code:
    • 404 for unsupported country names
    • 500s -> server side errors
    • unexpected errors (like domain resolution errors)
  2. updated tests
pskowronek commented 3 years ago

Tests in this PR now require additional library to mock 500 server response - not sure if there are some automatic tests integrated, if so, then tests-requirements.txt must be pip installed first.