Coverage report: 86%

Files Functions Classes

coverage.py v7.6.10, created at 2024-01-01 00:00 +0000

File statements missing excluded coverage
src/kwai/__init__.py 0 0 0 100%
src/kwai/__main__.py 5 5 0 0%
src/kwai/api/__init__.py 0 0 0 100%
src/kwai/api/__main__.py 5 5 0 0%
src/kwai/api/app.py 66 22 0 67%
src/kwai/api/converter.py 6 0 4 100%
src/kwai/api/dependencies.py 57 11 0 81%
src/kwai/api/schemas/__init__.py 0 0 0 100%
src/kwai/api/schemas/application.py 21 0 0 100%
src/kwai/api/schemas/news_item.py 33 0 0 100%
src/kwai/api/schemas/page.py 30 0 0 100%
src/kwai/api/schemas/resources.py 18 0 0 100%
src/kwai/api/v1/__init__.py 0 0 0 100%
src/kwai/api/v1/auth/__init__.py 0 0 0 100%
src/kwai/api/v1/auth/api.py 7 0 0 100%
src/kwai/api/v1/auth/endpoints/__init__.py 0 0 0 100%
src/kwai/api/v1/auth/endpoints/login.py 104 15 0 86%
src/kwai/api/v1/auth/endpoints/user.py 7 1 0 86%
src/kwai/api/v1/auth/endpoints/user_invitations.py 55 11 0 80%
src/kwai/api/v1/auth/endpoints/users.py 16 4 0 75%
src/kwai/api/v1/auth/presenters.py 10 4 0 60%
src/kwai/api/v1/auth/schemas/__init__.py 0 0 0 100%
src/kwai/api/v1/auth/schemas/resources.py 4 0 0 100%
src/kwai/api/v1/auth/schemas/user_account.py 12 1 0 92%
src/kwai/api/v1/auth/schemas/user_invitation.py 17 0 0 100%
src/kwai/api/v1/club/__init__.py 0 0 0 100%
src/kwai/api/v1/club/api.py 5 0 0 100%
src/kwai/api/v1/club/endpoints/__init__.py 0 0 0 100%
src/kwai/api/v1/club/endpoints/members.py 31 0 0 100%
src/kwai/api/v1/club/endpoints/upload_members.py 53 3 0 94%
src/kwai/api/v1/club/presenters.py 35 4 0 89%
src/kwai/api/v1/club/schemas/__init__.py 0 0 0 100%
src/kwai/api/v1/club/schemas/contact.py 28 0 0 100%
src/kwai/api/v1/club/schemas/member.py 29 0 0 100%
src/kwai/api/v1/club/schemas/person.py 30 0 0 100%
src/kwai/api/v1/club/schemas/resources.py 10 0 0 100%
src/kwai/api/v1/club/schemas/upload.py 16 16 0 0%
src/kwai/api/v1/news/__init__.py 0 0 0 100%
src/kwai/api/v1/news/api.py 4 0 0 100%
src/kwai/api/v1/news/endpoints/__init__.py 0 0 0 100%
src/kwai/api/v1/news/endpoints/news.py 65 10 0 85%
src/kwai/api/v1/pages/__init__.py 0 0 0 100%
src/kwai/api/v1/pages/api.py 4 0 0 100%
src/kwai/api/v1/pages/endpoints/__init__.py 0 0 0 100%
src/kwai/api/v1/pages/endpoints/pages.py 56 7 0 88%
src/kwai/api/v1/portal/__init__.py 0 0 0 100%
src/kwai/api/v1/portal/api.py 5 0 0 100%
src/kwai/api/v1/portal/endpoints/__init__.py 0 0 0 100%
src/kwai/api/v1/portal/endpoints/applications.py 35 2 0 94%
src/kwai/api/v1/portal/endpoints/news.py 17 2 0 88%
src/kwai/api/v1/resources.py 4 0 0 100%
src/kwai/api/v1/schemas.py 15 0 0 100%
src/kwai/api/v1/teams/__init__.py 0 0 0 100%
src/kwai/api/v1/teams/api.py 96 14 0 85%
src/kwai/api/v1/teams/presenters.py 29 2 0 93%
src/kwai/api/v1/teams/resources.py 4 0 0 100%
src/kwai/api/v1/teams/schemas.py 48 0 0 100%
src/kwai/api/v1/trainings/__init__.py 0 0 0 100%
src/kwai/api/v1/trainings/api.py 7 0 0 100%
src/kwai/api/v1/trainings/endpoints/__init__.py 0 0 0 100%
src/kwai/api/v1/trainings/endpoints/coaches.py 16 1 0 94%
src/kwai/api/v1/trainings/endpoints/teams.py 14 0 0 100%
src/kwai/api/v1/trainings/endpoints/training_definitions.py 78 15 0 81%
src/kwai/api/v1/trainings/endpoints/trainings.py 74 8 0 89%
src/kwai/api/v1/trainings/schemas/__init__.py 0 0 0 100%
src/kwai/api/v1/trainings/schemas/coach.py 15 2 0 87%
src/kwai/api/v1/trainings/schemas/team.py 12 0 0 100%
src/kwai/api/v1/trainings/schemas/training.py 61 5 0 92%
src/kwai/api/v1/trainings/schemas/training_definition.py 27 2 0 93%
src/kwai/app.py 18 18 0 0%
src/kwai/cli/__init__.py 0 0 0 100%
src/kwai/cli/__main__.py 9 9 0 0%
src/kwai/cli/commands/__init__.py 4 4 0 0%
src/kwai/cli/commands/bus.py 152 152 0 0%
src/kwai/cli/commands/db.py 41 41 0 0%
src/kwai/cli/commands/identity.py 31 31 0 0%
src/kwai/cli/dependencies.py 27 27 0 0%
src/kwai/core/__init__.py 0 0 0 100%
src/kwai/core/args.py 8 8 0 0%
src/kwai/core/db/__init__.py 0 0 0 100%
src/kwai/core/db/database.py 108 8 0 93%
src/kwai/core/db/database_query.py 28 0 9 100%
src/kwai/core/db/exceptions.py 10 4 0 60%
src/kwai/core/db/rows.py 41 1 0 98%
src/kwai/core/db/table.py 29 0 0 100%
src/kwai/core/db/table_row.py 54 0 0 100%
src/kwai/core/db/uow.py 11 0 0 100%
src/kwai/core/domain/__init__.py 0 0 0 100%
src/kwai/core/domain/entity.py 48 4 0 92%
src/kwai/core/domain/exceptions.py 1 0 0 100%
src/kwai/core/domain/mailer_service.py 3 0 4 100%
src/kwai/core/domain/presenter.py 11 0 12 100%
src/kwai/core/domain/repository/__init__.py 0 0 0 100%
src/kwai/core/domain/repository/query.py 3 0 17 100%
src/kwai/core/domain/use_case.py 31 3 4 90%
src/kwai/core/domain/value_objects/__init__.py 0 0 0 100%
src/kwai/core/domain/value_objects/date.py 39 2 0 95%
src/kwai/core/domain/value_objects/email_address.py 11 0 0 100%
src/kwai/core/domain/value_objects/identifier.py 20 1 4 95%
src/kwai/core/domain/value_objects/name.py 7 0 0 100%
src/kwai/core/domain/value_objects/owner.py 9 0 0 100%
src/kwai/core/domain/value_objects/password.py 13 0 0 100%
src/kwai/core/domain/value_objects/period.py 23 1 0 96%
src/kwai/core/domain/value_objects/text.py 43 4 0 91%
src/kwai/core/domain/value_objects/time_period.py 22 2 0 91%
src/kwai/core/domain/value_objects/timestamp.py 84 17 0 80%
src/kwai/core/domain/value_objects/traceable_time.py 11 1 0 91%
src/kwai/core/domain/value_objects/unique_id.py 17 0 0 100%
src/kwai/core/domain/value_objects/weekday.py 13 0 0 100%
src/kwai/core/events/__init__.py 0 0 0 100%
src/kwai/core/events/consumer.py 42 10 0 76%
src/kwai/core/events/dependencies.py 21 21 0 0%
src/kwai/core/events/event.py 18 0 0 100%
src/kwai/core/events/event_router.py 19 8 0 58%
src/kwai/core/events/fast_stream_publisher.py 10 0 0 100%
src/kwai/core/events/publisher.py 3 0 3 100%
src/kwai/core/events/redis_bus.py 38 12 0 68%
src/kwai/core/events/stream.py 121 29 0 76%
src/kwai/core/events/subscriber.py 3 0 3 100%
src/kwai/core/functions.py 21 0 0 100%
src/kwai/core/json_api.py 94 13 0 86%
src/kwai/core/mail/__init__.py 0 0 0 100%
src/kwai/core/mail/mail.py 34 5 0 85%
src/kwai/core/mail/mailer.py 4 0 4 100%
src/kwai/core/mail/message.py 3 0 60 100%
src/kwai/core/mail/recipient.py 26 1 0 96%
src/kwai/core/mail/smtp_mailer.py 59 13 0 78%
src/kwai/core/security/__init__.py 0 0 0 100%
src/kwai/core/settings.py 97 3 0 97%
src/kwai/core/template/__init__.py 0 0 0 100%
src/kwai/core/template/jinja2_engine.py 23 5 0 78%
src/kwai/core/template/jinja2_template.py 8 0 0 100%
src/kwai/core/template/mail_template.py 14 0 0 100%
src/kwai/core/template/template.py 2 0 4 100%
src/kwai/core/template/template_engine.py 4 0 7 100%
src/kwai/events/__init__.py 0 0 0 100%
src/kwai/events/__main__.py 36 36 0 0%
src/kwai/events/v1/__init__.py 4 4 0 0%
src/kwai/events/v1/identity/__init__.py 6 6 0 0%
src/kwai/events/v1/identity/user_invitation_tasks.py 26 26 0 0%
src/kwai/events/v1/identity/user_recovery_tasks.py 29 29 0 0%
src/kwai/frontend/__init__.py 0 0 0 100%
src/kwai/frontend/app.py 48 48 0 0%
src/kwai/frontend/apps/__init__.py 7 7 0 0%
src/kwai/frontend/apps/_admin.py 20 20 0 0%
src/kwai/frontend/apps/_auth.py 20 20 0 0%
src/kwai/frontend/apps/_author.py 20 20 0 0%
src/kwai/frontend/apps/_club.py 20 20 0 0%
src/kwai/frontend/apps/_coach.py 20 20 0 0%
src/kwai/frontend/apps/_portal.py 20 20 0 0%
src/kwai/frontend/dependencies.py 20 20 0 0%
src/kwai/frontend/etag_file_response.py 24 1 0 96%
src/kwai/frontend/manifest.py 39 1 0 97%
src/kwai/frontend/vite.py 71 3 29 96%
src/kwai/modules/__init__.py 0 0 0 100%
src/kwai/modules/club/__init__.py 0 0 0 100%
src/kwai/modules/club/domain/__init__.py 0 0 0 100%
src/kwai/modules/club/domain/coach.py 44 1 0 98%
src/kwai/modules/club/domain/contact.py 37 0 0 100%
src/kwai/modules/club/domain/country.py 22 0 0 100%
src/kwai/modules/club/domain/file_upload.py 33 0 0 100%
src/kwai/modules/club/domain/member.py 42 0 0 100%
src/kwai/modules/club/domain/person.py 39 0 0 100%
src/kwai/modules/club/domain/value_objects.py 35 2 0 94%
src/kwai/modules/club/get_member.py 17 0 0 100%
src/kwai/modules/club/get_members.py 23 0 0 100%
src/kwai/modules/club/import_members.py 73 5 0 93%
src/kwai/modules/club/repositories/__init__.py 0 0 0 100%
src/kwai/modules/club/repositories/_tables.py 127 0 0 100%
src/kwai/modules/club/repositories/coach_db_repository.py 13 0 0 100%
src/kwai/modules/club/repositories/coach_repository.py 3 0 8 100%
src/kwai/modules/club/repositories/contact_db_repository.py 31 0 0 100%
src/kwai/modules/club/repositories/contact_repository.py 4 0 12 100%
src/kwai/modules/club/repositories/country_db_repository.py 21 0 0 100%
src/kwai/modules/club/repositories/country_repository.py 4 0 9 100%
src/kwai/modules/club/repositories/file_upload_db_repository.py 20 0 0 100%
src/kwai/modules/club/repositories/file_upload_preview_repository.py 13 0 0 100%
src/kwai/modules/club/repositories/file_upload_repository.py 5 0 24 100%
src/kwai/modules/club/repositories/flemish_member_importer.py 43 10 0 77%
src/kwai/modules/club/repositories/member_db_query.py 46 0 0 100%
src/kwai/modules/club/repositories/member_db_repository.py 46 0 0 100%
src/kwai/modules/club/repositories/member_importer.py 29 0 6 100%
src/kwai/modules/club/repositories/member_query.py 6 0 17 100%
src/kwai/modules/club/repositories/member_repository.py 7 0 68 100%
src/kwai/modules/club/repositories/person_db_repository.py 39 0 0 100%
src/kwai/modules/club/repositories/person_repository.py 4 0 12 100%
src/kwai/modules/identity/__init__.py 0 0 0 100%
src/kwai/modules/identity/authenticate_user.py 32 1 0 97%
src/kwai/modules/identity/create_user.py 24 1 0 96%
src/kwai/modules/identity/delete_user_invitation.py 12 0 0 100%
src/kwai/modules/identity/exceptions.py 2 0 0 100%
src/kwai/modules/identity/get_invitations.py 14 0 0 100%
src/kwai/modules/identity/get_user_accounts.py 15 4 0 73%
src/kwai/modules/identity/get_user_invitation.py 13 0 0 100%
src/kwai/modules/identity/invite_user.py 38 0 0 100%
src/kwai/modules/identity/logout.py 16 0 0 100%
src/kwai/modules/identity/mail_user_invitation.py 30 2 0 93%
src/kwai/modules/identity/mail_user_recovery.py 30 2 0 93%
src/kwai/modules/identity/recover_user.py 24 1 0 96%
src/kwai/modules/identity/refresh_access_token.py 30 3 0 90%
src/kwai/modules/identity/reset_password.py 26 2 0 92%
src/kwai/modules/identity/tokens/__init__.py 0 0 0 100%
src/kwai/modules/identity/tokens/access_token.py 20 1 0 95%
src/kwai/modules/identity/tokens/access_token_db_query.py 18 2 0 89%
src/kwai/modules/identity/tokens/access_token_db_repository.py 39 7 0 82%
src/kwai/modules/identity/tokens/access_token_query.py 4 0 10 100%
src/kwai/modules/identity/tokens/access_token_repository.py 7 0 29 100%
src/kwai/modules/identity/tokens/refresh_token.py 20 0 0 100%
src/kwai/modules/identity/tokens/refresh_token_db_query.py 18 2 0 89%
src/kwai/modules/identity/tokens/refresh_token_db_repository.py 39 7 0 82%
src/kwai/modules/identity/tokens/refresh_token_query.py 4 0 10 100%
src/kwai/modules/identity/tokens/refresh_token_repository.py 7 0 31 100%
src/kwai/modules/identity/tokens/token_identifier.py 10 0 0 100%
src/kwai/modules/identity/tokens/token_tables.py 39 0 0 100%
src/kwai/modules/identity/user_invitations/__init__.py 0 0 0 100%
src/kwai/modules/identity/user_invitations/user_invitation.py 35 0 0 100%
src/kwai/modules/identity/user_invitations/user_invitation_db_query.py 30 0 0 100%
src/kwai/modules/identity/user_invitations/user_invitation_db_repository.py 38 0 0 100%
src/kwai/modules/identity/user_invitations/user_invitation_events.py 7 0 0 100%
src/kwai/modules/identity/user_invitations/user_invitation_mailer.py 17 0 0 100%
src/kwai/modules/identity/user_invitations/user_invitation_query.py 11 0 4 100%
src/kwai/modules/identity/user_invitations/user_invitation_repository.py 7 0 68 100%
src/kwai/modules/identity/user_invitations/user_invitation_tables.py 32 0 0 100%
src/kwai/modules/identity/user_recoveries/__init__.py 0 0 0 100%
src/kwai/modules/identity/user_recoveries/user_recovery.py 30 0 0 100%
src/kwai/modules/identity/user_recoveries/user_recovery_db_repository.py 25 0 0 100%
src/kwai/modules/identity/user_recoveries/user_recovery_events.py 7 0 0 100%
src/kwai/modules/identity/user_recoveries/user_recovery_mailer.py 17 0 0 100%
src/kwai/modules/identity/user_recoveries/user_recovery_repository.py 5 0 16 100%
src/kwai/modules/identity/user_recoveries/user_recovery_tables.py 26 0 0 100%
src/kwai/modules/identity/users/__init__.py 0 0 0 100%
src/kwai/modules/identity/users/user.py 18 0 0 100%
src/kwai/modules/identity/users/user_account.py 29 1 0 97%
src/kwai/modules/identity/users/user_account_db_query.py 18 0 0 100%
src/kwai/modules/identity/users/user_account_db_repository.py 38 0 0 100%
src/kwai/modules/identity/users/user_account_query.py 6 0 8 100%
src/kwai/modules/identity/users/user_account_repository.py 8 0 39 100%
src/kwai/modules/identity/users/user_db_query.py 21 0 0 100%
src/kwai/modules/identity/users/user_db_repository.py 35 3 0 91%
src/kwai/modules/identity/users/user_query.py 8 0 6 100%
src/kwai/modules/identity/users/user_repository.py 6 0 16 100%
src/kwai/modules/identity/users/user_tables.py 51 1 0 98%
src/kwai/modules/portal/__init__.py 0 0 0 100%
src/kwai/modules/portal/applications/__init__.py 0 0 0 100%
src/kwai/modules/portal/applications/application.py 50 0 0 100%
src/kwai/modules/portal/applications/application_db_query.py 25 0 0 100%
src/kwai/modules/portal/applications/application_db_repository.py 42 2 0 95%
src/kwai/modules/portal/applications/application_query.py 4 0 28 100%
src/kwai/modules/portal/applications/application_repository.py 6 0 75 100%
src/kwai/modules/portal/applications/application_tables.py 26 0 0 100%
src/kwai/modules/portal/create_news_item.py 24 3 0 88%
src/kwai/modules/portal/create_page.py 17 0 0 100%
src/kwai/modules/portal/delete_news_item.py 12 0 0 100%
src/kwai/modules/portal/delete_page.py 12 0 0 100%
src/kwai/modules/portal/get_application.py 11 0 0 100%
src/kwai/modules/portal/get_applications.py 20 3 0 85%
src/kwai/modules/portal/get_news_item.py 11 0 0 100%
src/kwai/modules/portal/get_news_items.py 31 3 0 90%
src/kwai/modules/portal/get_page.py 11 0 0 100%
src/kwai/modules/portal/get_pages.py 19 1 0 95%
src/kwai/modules/portal/news/__init__.py 0 0 0 100%
src/kwai/modules/portal/news/news_item.py 44 0 0 100%
src/kwai/modules/portal/news/news_item_db_query.py 65 6 0 91%
src/kwai/modules/portal/news/news_item_db_repository.py 63 6 0 90%
src/kwai/modules/portal/news/news_item_query.py 5 0 53 100%
src/kwai/modules/portal/news/news_item_repository.py 6 0 60 100%
src/kwai/modules/portal/news/news_tables.py 35 0 0 100%
src/kwai/modules/portal/news_item_command.py 12 0 0 100%
src/kwai/modules/portal/page_command.py 9 0 0 100%
src/kwai/modules/portal/pages/__init__.py 0 0 0 100%
src/kwai/modules/portal/pages/page.py 33 0 0 100%
src/kwai/modules/portal/pages/page_db_query.py 48 5 0 90%
src/kwai/modules/portal/pages/page_db_repository.py 52 0 0 100%
src/kwai/modules/portal/pages/page_query.py 5 0 28 100%
src/kwai/modules/portal/pages/page_repository.py 6 0 60 100%
src/kwai/modules/portal/pages/page_tables.py 31 0 0 100%
src/kwai/modules/portal/update_application.py 24 0 0 100%
src/kwai/modules/portal/update_news_item.py 30 3 0 90%
src/kwai/modules/portal/update_page.py 23 0 0 100%
src/kwai/modules/teams/__init__.py 0 0 0 100%
src/kwai/modules/teams/create_team.py 16 0 0 100%
src/kwai/modules/teams/create_team_member.py 26 0 0 100%
src/kwai/modules/teams/delete_team.py 12 0 0 100%
src/kwai/modules/teams/domain/__init__.py 0 0 0 100%
src/kwai/modules/teams/domain/team.py 38 3 0 92%
src/kwai/modules/teams/domain/team_member.py 49 2 0 96%
src/kwai/modules/teams/get_members.py 20 0 0 100%
src/kwai/modules/teams/get_team.py 15 0 0 100%
src/kwai/modules/teams/get_teams.py 15 0 0 100%
src/kwai/modules/teams/repositories/__init__.py 0 0 0 100%
src/kwai/modules/teams/repositories/_tables.py 68 1 0 99%
src/kwai/modules/teams/repositories/member_db_repository.py 65 2 0 97%
src/kwai/modules/teams/repositories/member_repository.py 10 0 58 100%
src/kwai/modules/teams/repositories/team_db_repository.py 82 3 0 96%
src/kwai/modules/teams/repositories/team_member_db_query.py 39 3 0 92%
src/kwai/modules/teams/repositories/team_repository.py 8 0 50 100%
src/kwai/modules/teams/update_team.py 20 0 0 100%
src/kwai/modules/training/__init__.py 0 0 0 100%
src/kwai/modules/training/coaches/__init__.py 0 0 0 100%
src/kwai/modules/training/coaches/_tables.py 18 0 0 100%
src/kwai/modules/training/coaches/coach.py 16 2 0 88%
src/kwai/modules/training/coaches/coach_db_query.py 34 0 0 100%
src/kwai/modules/training/coaches/coach_db_repository.py 28 1 0 96%
src/kwai/modules/training/coaches/coach_query.py 4 0 20 100%
src/kwai/modules/training/coaches/coach_repository.py 6 0 36 100%
src/kwai/modules/training/create_training.py 34 0 0 100%
src/kwai/modules/training/create_training_definition.py 20 0 0 100%
src/kwai/modules/training/delete_training.py 12 0 0 100%
src/kwai/modules/training/delete_training_definition.py 16 0 0 100%
src/kwai/modules/training/get_coaches.py 15 0 0 100%
src/kwai/modules/training/get_teams.py 9 0 0 100%
src/kwai/modules/training/get_training.py 11 0 0 100%
src/kwai/modules/training/get_training_definition.py 11 0 0 100%
src/kwai/modules/training/get_training_definitions.py 13 0 0 100%
src/kwai/modules/training/get_trainings.py 40 1 0 98%
src/kwai/modules/training/teams/__init__.py 0 0 0 100%
src/kwai/modules/training/teams/team.py 10 0 0 100%
src/kwai/modules/training/teams/team_db_query.py 17 0 0 100%
src/kwai/modules/training/teams/team_db_repository.py 26 0 0 100%
src/kwai/modules/training/teams/team_query.py 4 0 16 100%
src/kwai/modules/training/teams/team_repository.py 6 0 23 100%
src/kwai/modules/training/teams/team_tables.py 10 0 0 100%
src/kwai/modules/training/training_command.py 20 0 0 100%
src/kwai/modules/training/training_definition_command.py 13 0 0 100%
src/kwai/modules/training/trainings/__init__.py 0 0 0 100%
src/kwai/modules/training/trainings/training.py 56 0 0 100%
src/kwai/modules/training/trainings/training_coach_db_query.py 37 3 0 92%
src/kwai/modules/training/trainings/training_db_query.py 64 0 0 100%
src/kwai/modules/training/trainings/training_db_repository.py 123 10 0 92%
src/kwai/modules/training/trainings/training_definition.py 54 0 0 100%
src/kwai/modules/training/trainings/training_definition_db_query.py 23 0 0 100%
src/kwai/modules/training/trainings/training_definition_db_repository.py 41 1 0 98%
src/kwai/modules/training/trainings/training_definition_query.py 4 0 26 100%
src/kwai/modules/training/trainings/training_definition_repository.py 6 0 64 100%
src/kwai/modules/training/trainings/training_query.py 8 0 62 100%
src/kwai/modules/training/trainings/training_repository.py 7 0 74 100%
src/kwai/modules/training/trainings/training_tables.py 91 1 0 99%
src/kwai/modules/training/trainings/training_team_db_query.py 23 2 0 91%
src/kwai/modules/training/trainings/value_objects.py 18 0 0 100%
src/kwai/modules/training/update_training.py 40 2 0 95%
src/kwai/modules/training/update_training_definition.py 26 1 0 96%
Total 7661 1059 1290 86%

No items found using the specified filter.