Closed Tina-otoge closed 1 year ago
As of https://github.com/OrganIA/organia-server/commit/8c47e5d4c4064547275e12d0f14fa9276b1d6639, our coverage is at a sad score of 58.40%.
Here's a report
Name Stmts Miss Cover --------------------------------------------------------- app/__init__.py 1 0 100% app/api/__init__.py 8 0 100% app/api/action_logs.py 7 1 86% app/api/auth.py 16 4 75% app/api/calendar.py 35 17 51% app/api/compatibility.py 9 5 44% app/api/dependencies/__init__.py 3 0 100% app/api/dependencies/logged_user.py 18 7 61% app/api/hospitals.py 49 27 45% app/api/info.py 18 7 61% app/api/invitation.py 22 22 0% app/api/listings.py 42 19 55% app/api/messages.py 127 101 20% app/api/messages_websockets.py 79 62 22% app/api/permissions/__init__.py 5 2 60% app/api/permissions/persons.py 3 1 67% app/api/permissions/roles.py 3 1 67% app/api/permissions/users.py 5 3 40% app/api/persons.py 35 16 54% app/api/roles.py 39 20 49% app/api/schemas/calendar.py 13 0 100% app/api/schemas/chat.py 18 0 100% app/api/schemas/city.py 6 0 100% app/api/schemas/hospital.py 16 0 100% app/api/schemas/listing.py 41 0 100% app/api/schemas/messages.py 11 0 100% app/api/schemas/person.py 21 0 100% app/api/schemas/role.py 25 0 100% app/api/schemas/user.py 15 0 100% app/api/score.py 33 16 52% app/api/users.py 47 21 55% app/config.py 24 1 96% app/cors.py 5 0 100% app/db/__init__.py 18 1 94% app/db/actions.py 49 34 31% app/db/base.py 43 28 35% app/db/mixins.py 27 0 100% app/distance.py 17 4 76% app/errors.py 36 13 64% app/helpers/__init__.py 0 0 100% app/helpers/enums.py 7 1 86% app/helpers/str_format.py 2 0 100% app/log.py 18 18 0% app/mailing.py 12 12 0% app/main.py 20 3 85% app/models/__init__.py 13 0 100% app/models/action_log.py 19 1 95% app/models/calendar.py 8 0 100% app/models/chat_group.py 8 0 100% app/models/chats.py 8 0 100% app/models/city.py 6 0 100% app/models/hospital.py 14 2 86% app/models/invitation.py 39 39 0% app/models/listing.py 47 14 70% app/models/login_token.py 52 13 75% app/models/messages.py 9 0 100% app/models/person.py 40 6 85% app/models/role.py 46 7 85% app/models/staff.py 10 0 100% app/models/user.py 42 12 71% app/score/Kidney/DialyseScores.py 39 26 33% app/score/Kidney/HLA_Age.py 28 15 46% app/score/Kidney/KidneyScore.py 28 17 39% app/score/Liver/LiverScore.py 24 19 21% app/security.py 13 8 38% app/tests/__init__.py 5 0 100% app/tests/fixtures.py 17 0 100% app/tests/helpers.py 18 8 56% app/tests/test_auth.py 25 10 60% app/tests/test_chats.py 21 11 48% app/tests/test_compatibility.py 8 0 100% app/tests/test_distance.py 5 0 100% app/tests/test_hospital.py 21 10 52% app/tests/test_kidney_scoring.py 22 0 100% app/tests/test_persons.py 44 24 45% app/tests/test_score.py 15 0 100% app/tests/test_users.py 29 14 52% app/utils/__init__.py 1 0 100% app/utils/websocket_manager.py 62 40 35% --------------------------------------------------------- TOTAL 1834 763 58% FAIL Required test coverage of 90% not reached. Total coverage: 58.40%
Everything that is below 80 should be investigated
Let's re-write tests later
As of https://github.com/OrganIA/organia-server/commit/8c47e5d4c4064547275e12d0f14fa9276b1d6639, our coverage is at a sad score of 58.40%.
Here's a report
Everything that is below 80 should be investigated