ai-cfia / nachet-backend

A flask-based backend for Nachet to handle Azure endpoint and Azure storage API requests from the frontend.
MIT License
1 stars 3 forks source link

Improve backend tests #92

Open sylvanie85 opened 3 weeks ago

sylvanie85 commented 3 weeks ago

Context

We want to improve backend testing, currently we test each route with a success case and an error case. The current problem is that our tests are dependent of the datastore and each tests commit changes to the database and therefore shouldn't be committed.

Objective

  1. Add module tests to ensure that all functions work independently of the routes.
  2. Making sure that all routes work.
  3. Deleting the entries in the database if some are created.

Acceptance criteria: