Need test cases for the backend api serice
Closed this issue · 1 comments
rofrano commented
There are currently no test cases that test the Flask service of aca_backend_api
. The recent problems we had with #94 Unable to connect to Database causing a a 500 INTERNAL SERVER ERROR was reproduced by using the sample call from our demo video. This could have been caught during development if we had test cases that made calls to the Flask service and checked that we got the results that we expected.
At a minimum we need to write tests for both API calls passing in both good and bad data. We should aim for at least 95% code coverage in these test cases.
mmerler commented
add this in the Dockefile, so that it runs automatically, and no matter where the image is deployed