flatironinstitute / dendro-old

Analyze neuroscience data in the cloud
https://flatironinstitute.github.io/dendro-docs/
Apache License 2.0
19 stars 2 forks source link

coverage testing #15

Closed magland closed 1 year ago

magland commented 1 year ago

@luiztauffer I am expanding testing, including testing of the api. I am using a simple homemade mock client for mongo.

Here's the main test that goes through gui operations (create project, create job, etc) to compute resource operations (get unfinished jobs, ...) and processor operations (set job status, ...)

https://github.com/scratchrealm/protocaas/blob/aabb6c13476db8d40451229008a95c69111b5c35/python/tests/test_api.py

codecov[bot] commented 1 year ago

Codecov Report

Attention: 25 lines in your changes are missing coverage. Please review.

Files Coverage Δ
python/protocaas/api_helpers/clients/db.py 63.38% <100.00%> (+63.38%) :arrow_up:
python/protocaas/api_helpers/clients/pubsub.py 50.00% <100.00%> (+50.00%) :arrow_up:
...i_helpers/routers/gui/_authenticate_gui_request.py 44.73% <90.90%> (+44.73%) :arrow_up:
.../protocaas/api_helpers/routers/processor/router.py 40.00% <33.33%> (+40.00%) :arrow_up:
...protocaas/api_helpers/clients/_get_mongo_client.py 76.19% <61.53%> (+76.19%) :arrow_up:
...n/protocaas/api_helpers/clients/MockMongoClient.py 81.70% <81.70%> (ø)

... and 18 files with indirect coverage changes

:loudspeaker: Thoughts on this report? Let us know!.