Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Add unit tests #1

Open
nikos912000 opened this issue Dec 9, 2018 · 0 comments
Open

Add unit tests #1

nikos912000 opened this issue Dec 9, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@nikos912000
Copy link
Collaborator

We need to add tests so that changes don't break the existing functionality.

There are many ways to fake the MongoDB calls but since we're only doing simple calls (GETs) the most preferable option would be to mock those calls (e.g. with unittest's mock.patch) and avoid spinning up a MongoDB instance.

In particular, we need to test the endpoints in the views.py, and also unit test the filehandler.

@nikos912000 nikos912000 added the enhancement New feature or request label Dec 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant