ENH: new module which allows to register integration tests in caosdb instances
Compare changes
src/caosadvancedtools/testutils/__init__.py
0 → 100644
+ 2
− 0
This is a proposal for an API to register integration tests.
Please see the documentation of register_tests.py
for detailed information.
The API and its purpose is open for discussion and in principle open for changes and suggestions.
Related issue: https://gitlab.indiscale.com/caosdb/src/crawler2.0/-/issues/3 (maybe wrong place, but it came up during development of the new crawler framework)
Run an empty CaosDB instance and create a test file that uses
the @pytest.fixture clear_database
.
Also see documentation of the register_tests module and be careful with the CaosDB instance, as the fixture is intended to wipe a CaosDB instance.
Please test the behavior of the API for:
Please, prepare your MR for a review. Be sure to write a summary and a focus and create gitlab comments for the reviewer. They should guide the reviewer through the changes, explain your changes and also point out open questions. For further good practices have a look at our review guidelines
For further good practices have a look at our review guidelines.