Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve backend tests #123

Open
3 tasks
sylvanie85 opened this issue Aug 23, 2024 · 0 comments
Open
3 tasks

Improve backend tests #123

sylvanie85 opened this issue Aug 23, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@sylvanie85
Copy link
Collaborator

This issue follows on from this one #92 Improve backend tests

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. Tests should avoid any direct interaction with the Azure storage and database, as these interactions incur costs and risk generating incorrect data.

Objective

Making sure that all routes work.
Deleting the entries in the database if some are created
The file test_manage_folders.py is an example of what we want for route tests, but feel free to improve it.

Acceptance criteria:

  • all routes have a unit test using a mock/patch for datastore functions :
  • an end-to-end test verifies everything
  • coverage must be at least 80%
@sylvanie85 sylvanie85 added the good first issue Good for newcomers label Aug 23, 2024
@github-project-automation github-project-automation bot moved this to Todo in Nachet Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: Todo
Development

No branches or pull requests

1 participant