First Endpoint Tests for Python Client
Summary
Basic test coverage for the API endpoints with one test file for each endpoint, utilizing both the python client and direct calls. Additionally added a package structure and simple settings, as well as a short section on how to run the tests in the top-level readme.
Focus
- To ensure best possible coverage, some tests are ordered or depend on each other. To achieve this, pytest-dependency and pytest-order have to be installed.
- Potential Problems:
- It was not always clear what the desired response format is, so the chosen asserts might not fully fit intended behavior.
- As the naming and folder structure is not identical between API and client, there might be inconsistencies in the names of folders and tests.
Check List for the Author
-
All automated tests pass -
Reference related issues -
Appropriate user and developer documentation (or not necessary) - How do I use the software? Assume "stupid" users.
- How do I develop or debug the software? Assume novice developers.
-
Annotations in code (Gitlab comments) - Intent of new code
- Why this implementation?
Check List for the Reviewer
-
I understand the intent of this MR -
All automated tests pass -
Appropriate user and developer documentation -
The test environment setup works and the intended behavior is reproducible in the test environment -
In-code documentation and comments are up-to-date.
Edited by Timm Fitschen