Backend Development#
Developer or User?
This section is part of the instrutions for programmers interested in REEV. If you want to use REEV, the best place is to start at Quickstart.
Types#
prefer to use semantic-carrying types, e.g.,
enum.Enumoverboolorint
Test Structure#
use assemble, act, assert structure e.g., as described here
properly use fixtures, place them in
conftest.pyfiles- use
pytest.mark.parameterizeto condense multiple test cases into one tests but don’t overdo it see
test_clinvarsub.pyfor an example (e.g.,test_create_submissionthreads) that is still good a trade-off but probably shows the highest degree of complexity (read: different test code paths)
- use