facebookresearch / stopes

A library for preparing data for machine translation research (monolingual preprocessing, bitext mining, etc.) built by the FAIR NLLB team.
https://facebookresearch.github.io/stopes/
MIT License
251 stars 37 forks source link

Add initial backend test #48

Closed david-wagih closed 1 year ago

david-wagih commented 1 year ago

Why ?

to start adding tests for each endpoint we have now or added later, and that is important for our code maintainability.

How ?

started using pytest for writing my initial test.

Test plan

in the root directory of the backend folder inside seamlisten app folder, type the command pytest which will trigger all the tests written in the project.

david-wagih commented 1 year ago

can you please take a look @Celebio issue #35

david-wagih commented 1 year ago

LGTM. Were you able to run the test without the background fully operational?

I tried to run these tests for the base endpoints in the static.py file, but I didn;t add tests yet for the endpoints that are not working with me yet @Celebio