rolfberkenbosch / meteoalert-api

MIT License
12 stars 9 forks source link

Better error handling plus updated tests #23

Closed pskowronek closed 2 years ago

pskowronek commented 2 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 2 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.