pi-hole/api

Improve Tests

AzureMarker opened this issue · 2 comments

Testing can always be improved. In some cases, only the "happy paths" are tested, not the cases where an error should occur or some other edge case. Also, there are a lot of integration-type tests over a single endpoint, but there should be more unit tests on specific functions. Right now there aren't too many missed spots.

This involves refactoring and enough knowledge of the code base to test, so it isn't really a good first issue.

The service architecture added by #141 will be very useful for testing.