CliDyn / climsight

prototype of a system that provide local climate information
BSD 3-Clause "New" or "Revised" License
27 stars 9 forks source link

Use mocking to test http requests #73

Closed koldunovn closed 3 months ago

koldunovn commented 3 months ago

For tests we have to mock response from the server, as this is not what we can influence. For example here: https://github.com/koldunovn/climsight/blob/bab1a8f960c43e835076e076ad8268abe8b7d6b6/test/test_geofunctions.py#L79

I would just mock response from nominatim, otherwise we depend on it's mercy :)