uhh-lt / dats

Discourse Analysis Tool Suite
Apache License 2.0
15 stars 2 forks source link

Backend API Testing #230

Open floschne opened 10 months ago

floschne commented 10 months ago

We need to implement automatic tests for the most critical API endpoints! Please use the FastAPI testing clients for this: https://fastapi.tiangolo.com/tutorial/testing/. The tests should run outside of the containers with pytest, i.e., for them to run, first, all "auxiliary" docker services have to be up and running. Later, we will check how to run the tests inside the container.

For this, I thought of the following typical actions that start with a fresh and clean DATS instance:

Users and Projects

Codes and Annotations

Tags

Memos

Search and Filter

Feedback

Project Metadata

Deletion OPs

floschne commented 10 months ago

@bigabig if you have more ideas what to test, please extend the list here :)