Coverage report: 85%

Files Functions Classes

coverage.py v7.5.0, created at 2025-09-13 15:29 -0300

File function statements missing excluded coverage
blogModel/__init__.py (no function) 0 0 0 100%
blogModel/asgi.py (no function) 4 4 0 0%
blogModel/sanitizer.py sanitize_html 7 7 0 0%
blogModel/sanitizer.py (no function) 6 6 0 0%
blogModel/settings/__init__.py (no function) 0 0 0 100%
blogModel/settings/settings.py (no function) 53 15 0 72%
blogModel/urls.py (no function) 5 0 0 100%
blogModel/wsgi.py (no function) 4 4 0 0%
manage.py main 6 6 0 0%
manage.py (no function) 6 6 0 0%
website/__init__.py (no function) 0 0 0 100%
website/admin.py UserAdmin.get_profile_type 8 8 0 0%
website/admin.py UserAdmin.get_profile_name 8 8 0 0%
website/admin.py (no function) 31 0 0 100%
website/apps.py (no function) 4 0 0 100%
website/forms/EditAuthorForm.py UserChangeForm.clean 7 0 0 100%
website/forms/EditAuthorForm.py UserChangeForm.save 7 0 0 100%
website/forms/EditAuthorForm.py (no function) 41 0 0 100%
website/forms/EditReaderForm.py (no function) 9 0 0 100%
website/forms/LoginForm.py (no function) 4 0 0 100%
website/forms/PostForm.py PostForm.clean_url_slug 14 4 0 71%
website/forms/PostForm.py PostForm.clean_meta_description 4 1 0 75%
website/forms/PostForm.py PostForm.clean_text 5 2 0 60%
website/forms/PostForm.py (no function) 13 0 0 100%
website/forms/ProfileUpdateForm.py ProfileUpdateForm.__init__ 12 2 0 83%
website/forms/ProfileUpdateForm.py (no function) 7 0 0 100%
website/forms/RegistrationForm.py (no function) 22 0 0 100%
website/forms/SearchForm.py (no function) 3 0 0 100%
website/forms/__init__.py (no function) 6 0 0 100%
website/management/__init__.py (no function) 0 0 0 100%
website/management/commands/__init__.py (no function) 0 0 0 100%
website/management/commands/create_test_user.py Command.add_arguments 3 3 0 0%
website/management/commands/create_test_user.py Command.handle 13 13 0 0%
website/management/commands/create_test_user.py (no function) 7 7 0 0%
website/manager.py UserManager.create_user 6 0 0 100%
website/manager.py UserManager.create_superuser 8 1 0 88%
website/manager.py (no function) 4 0 0 100%
website/middleware.py Custom404Middleware.__init__ 1 0 0 100%
website/middleware.py Custom404Middleware.__call__ 4 1 0 75%
website/middleware.py Custom404Middleware.process_exception 3 3 0 0%
website/middleware.py (no function) 6 0 0 100%
website/migrations/0001_initial.py (no function) 10 0 0 100%
website/migrations/0002_post_meta_description.py (no function) 4 0 0 100%
website/migrations/0003_alter_post_author.py (no function) 5 0 0 100%
website/migrations/0004_remove_author_graduations_alter_graduation_student.py (no function) 5 0 0 100%
website/migrations/0005_post_likes_post_loves.py (no function) 5 0 0 100%
website/migrations/0006_alter_job_employee.py (no function) 5 0 0 100%
website/migrations/__init__.py (no function) 0 0 0 100%
website/models/AuthorModel.py Author.__str__ 1 1 0 0%
website/models/AuthorModel.py (no function) 18 0 0 100%
website/models/AuthorSocialMediaModel.py (no function) 8 0 0 100%
website/models/GraduationsModel.py Graduation.__str__ 1 1 0 0%
website/models/GraduationsModel.py (no function) 11 0 0 100%
website/models/JobsModel.py (no function) 14 0 0 100%
website/models/PostModel.py Post.publish 2 2 0 0%
website/models/PostModel.py Post.save 1 0 0 100%
website/models/PostModel.py Post.__str__ 1 1 0 0%
website/models/PostModel.py (no function) 20 0 0 100%
website/models/ReaderModel.py Reader.__str__ 1 1 0 0%
website/models/ReaderModel.py (no function) 13 0 0 100%
website/models/UserModel.py User.__str__ 1 1 0 0%
website/models/UserModel.py (no function) 12 0 0 100%
website/models/__init__.py (no function) 17 0 0 100%
website/templatetags/__init__.py (no function) 0 0 0 100%
website/templatetags/get_type.py get_tile_types 23 7 0 70%
website/templatetags/get_type.py (no function) 7 0 0 100%
website/templatetags/replace_word.py replace_word 1 0 0 100%
website/templatetags/replace_word.py (no function) 4 0 0 100%
website/tests/__init__.py (no function) 0 0 0 100%
website/tests/test_admin_and_templatetag.py test_admin_module_loads 2 0 0 100%
website/tests/test_admin_and_templatetag.py test_get_type_direct_call 16 0 0 100%
website/tests/test_admin_and_templatetag.py test_userchangeform_clean_and_save 12 0 0 100%
website/tests/test_admin_and_templatetag.py (no function) 4 0 0 100%
website/tests/test_author_profile.py AuthorHelpersTests.setUp 3 0 0 100%
website/tests/test_author_profile.py AuthorHelpersTests.test_check_request_post_returns_expected_structure 16 0 0 100%
website/tests/test_author_profile.py AuthorHelpersTests.test_check_request_post_returns_expected_structure.DummyReq.POST_DICT.AuthorHelpersTests.setUp 3 3 0 0%
website/tests/test_author_profile.py AuthorHelpersTests.test_check_request_post_returns_expected_structure.DummyReq.POST_DICT.AuthorHelpersTests.test_check_request_post_returns_expected_structure 9 9 0 0%
website/tests/test_author_profile.py AuthorHelpersTests.test_check_request_post_returns_expected_structure.DummyReq.POST_DICT.AuthorHelpersTests.test_check_request_post_returns_expected_structure.DummyReq.POST_DICT.getlist 1 1 0 0%
website/tests/test_author_profile.py AuthorHelpersTests.test_check_request_post_returns_expected_structure.DummyReq.POST_DICT.AuthorHelpersTests.test_update_social_media_detects_changes 7 7 0 0%
website/tests/test_author_profile.py AuthorHelpersTests.test_check_request_post_returns_expected_structure.DummyReq.POST_DICT.AuthorHelpersTests.test_update_social_media_detects_changes.DummyReq.POST_DICT.getlist 1 1 0 0%
website/tests/test_author_profile.py AuthorHelpersTests.test_check_request_post_returns_expected_structure.DummyReq.POST_DICT.ProfileUpdateTests.setUp 1 1 0 0%
website/tests/test_author_profile.py AuthorHelpersTests.test_check_request_post_returns_expected_structure.DummyReq.POST_DICT.ProfileUpdateTests.test_create_author_profile_via_view 6 6 0 0%
website/tests/test_author_profile.py (no function) 10 0 0 100%
website/tests/test_author_profile_helpers.py AuthorProfileHelpersTest.test_check_author_form_and_user_form_username_conflict 13 0 0 100%
website/tests/test_author_profile_helpers.py AuthorProfileHelpersTest.test_check_author_form_and_user_form_username_conflict.PostDict.getlist 1 0 0 100%
website/tests/test_author_profile_helpers.py AuthorProfileHelpersTest.test_update_social_media_detects_changes 14 0 0 100%
website/tests/test_author_profile_helpers.py AuthorProfileHelpersTest.test_update_social_media_detects_changes.PostDict.getlist 1 0 0 100%
website/tests/test_author_profile_helpers.py ReaderEditHelpersTest.test_reader_check_user_form_username_conflict 10 0 0 100%
website/tests/test_author_profile_helpers.py ReaderEditHelpersTest.test_reader_check_user_form_username_conflict.PostDict.getlist 1 1 0 0%
website/tests/test_author_profile_helpers.py (no function) 13 0 0 100%
website/tests/test_author_view.py AuthorViewTests.setUp 4 0 0 100%
website/tests/test_author_view.py AuthorViewTests.test_view_author_page_owner_and_non_owner 13 0 0 100%
website/tests/test_author_view.py AuthorViewTests.test_view_author_page_owner_and_non_owner.fake_render 4 0 0 100%
website/tests/test_author_view.py AuthorViewTests.test_check_request_post_parses_post_and_files 10 0 0 100%
website/tests/test_author_view.py AuthorViewTests.test_edit_author_profile_post_success_path 20 0 0 100%
website/tests/test_author_view.py AuthorViewTests.test_edit_author_profile_post_success_path.FakeFormSet.__init__ 1 0 0 100%
website/tests/test_author_view.py AuthorViewTests.test_edit_author_profile_post_success_path.FakeFormSet.is_valid 1 0 0 100%
website/tests/test_author_view.py AuthorViewTests.test_edit_author_profile_post_success_path.FakeFormSet.save 1 0 0 100%
website/tests/test_author_view.py AuthorViewTests.test_edit_author_profile_post_username_conflict_shows_error 7 0 0 100%
website/tests/test_author_view.py (no function) 15 0 0 100%
website/tests/test_author_view_clean.py AuthorViewCleanTests.setUp 4 0 0 100%
website/tests/test_author_view_clean.py AuthorViewCleanTests.test_view_author_page_owner_and_non_owner 13 0 0 100%
website/tests/test_author_view_clean.py AuthorViewCleanTests.test_view_author_page_owner_and_non_owner.fake_render 4 0 0 100%
website/tests/test_author_view_clean.py AuthorViewCleanTests.test_check_request_post_and_helpers 13 0 0 100%
website/tests/test_author_view_clean.py AuthorViewCleanTests.test_edit_author_profile_post_redirects_on_success 20 0 0 100%
website/tests/test_author_view_clean.py AuthorViewCleanTests.test_edit_author_profile_post_redirects_on_success.FakeFormSet.__init__ 1 0 0 100%
website/tests/test_author_view_clean.py AuthorViewCleanTests.test_edit_author_profile_post_redirects_on_success.FakeFormSet.is_valid 1 0 0 100%
website/tests/test_author_view_clean.py AuthorViewCleanTests.test_edit_author_profile_post_redirects_on_success.FakeFormSet.save 1 0 0 100%
website/tests/test_author_view_clean.py (no function) 14 0 0 100%
website/tests/test_author_view_helpers_more.py PostDict.getlist 1 0 0 100%
website/tests/test_author_view_helpers_more.py AuthorViewHelpersMoreTest.test_check_request_post_detects_new_social_addition 7 0 0 100%
website/tests/test_author_view_helpers_more.py AuthorViewHelpersMoreTest.test_update_social_media_updates_existing_entries 12 0 0 100%
website/tests/test_author_view_helpers_more.py AuthorViewHelpersMoreTest.test_create_social_media_appends_new_entries 10 0 0 100%
website/tests/test_author_view_helpers_more.py AuthorViewHelpersMoreTest.test_exclude_social_media_removes_entries 11 0 0 100%
website/tests/test_author_view_helpers_more.py (no function) 14 0 0 100%
website/tests/test_author_view_unit.py AuthorViewUnitTests.setUp 3 0 0 100%
website/tests/test_author_view_unit.py AuthorViewUnitTests.test_check_request_post_none_on_get 3 0 0 100%
website/tests/test_author_view_unit.py AuthorViewUnitTests.test_check_request_post_with_post_lists 7 0 0 100%
website/tests/test_author_view_unit.py AuthorViewUnitTests.test_update_create_exclude_social_media_flow 23 1 0 96%
website/tests/test_author_view_unit.py AuthorViewUnitTests.test_edit_author_redirects_when_no_slug_and_no_author 5 0 0 100%
website/tests/test_author_view_unit.py (no function) 12 0 0 100%
website/tests/test_authorview_more.py AuthorViewMoreTests.setUp 5 0 0 100%
website/tests/test_authorview_more.py AuthorViewMoreTests.test_check_author_form_updates_name_when_valid 7 0 0 100%
website/tests/test_authorview_more.py AuthorViewMoreTests.test_check_user_form_updates_username_when_free 5 0 0 100%
website/tests/test_authorview_more.py AuthorViewMoreTests.test_edit_author_with_user_author_returns_response 9 0 0 100%
website/tests/test_authorview_more.py (no function) 10 0 0 100%
website/tests/test_login_and_password_change.py (no function) 0 0 0 100%
website/tests/test_login_and_search_views.py LoginViewTests.setUp 1 0 0 100%
website/tests/test_login_and_search_views.py LoginViewTests._attach_session_and_messages 2 0 0 100%
website/tests/test_login_and_search_views.py LoginViewTests.test_login_success_redirects 7 0 0 100%
website/tests/test_login_and_search_views.py LoginViewTests.test_login_email_not_found_renders_with_flag 9 0 0 100%
website/tests/test_login_and_search_views.py LoginViewTests.test_login_email_not_found_renders_with_flag.fake_render 1 0 0 100%
website/tests/test_login_and_search_views.py SearchViewTests.setUp 1 0 0 100%
website/tests/test_login_and_search_views.py SearchViewTests.test_search_returns_results_and_counts 10 0 0 100%
website/tests/test_login_and_search_views.py SearchViewTests.test_search_returns_results_and_counts.fake_render 1 0 0 100%
website/tests/test_login_and_search_views.py SearchViewTests.test_search_page_not_integer_returns_first_page 10 0 0 100%
website/tests/test_login_and_search_views.py SearchViewTests.test_search_page_not_integer_returns_first_page.fake_render 1 0 0 100%
website/tests/test_login_and_search_views.py (no function) 20 0 0 100%
website/tests/test_manager.py DummyUser.__init__ 4 0 0 100%
website/tests/test_manager.py DummyUser.set_password 1 0 0 100%
website/tests/test_manager.py DummyUser.save 1 0 0 100%
website/tests/test_manager.py test_create_user_and_superuser_paths 11 0 0 100%
website/tests/test_manager.py test_create_user_missing_email_raises 8 1 0 88%
website/tests/test_manager.py test_create_superuser_checks_flags 8 1 0 88%
website/tests/test_manager.py (no function) 8 0 0 100%
website/tests/test_pass_val.py (no function) 0 0 0 100%
website/tests/test_pass_validator.py (no function) 0 0 0 100%
website/tests/test_profile_and_post_permissions.py ProfileAndPostPermissionTests.setUp 6 0 0 100%
website/tests/test_profile_and_post_permissions.py ProfileAndPostPermissionTests.test_update_profile_switch_reader_to_author_with_image 9 0 0 100%
website/tests/test_profile_and_post_permissions.py ProfileAndPostPermissionTests.test_edit_post_permission_owner_vs_non_owner 17 0 0 100%
website/tests/test_profile_and_post_permissions.py (no function) 15 0 0 100%
website/tests/test_profile_author_views.py ProfileAndAuthorViewTests.test_create_reader_profile_via_view 7 0 0 100%
website/tests/test_profile_author_views.py ProfileAndAuthorViewTests.test_switch_author_to_reader_via_view 11 0 0 100%
website/tests/test_profile_author_views.py ProfileAndAuthorViewTests.test_update_existing_author_name 8 0 0 100%
website/tests/test_profile_author_views.py ProfileAndAuthorViewTests.test_create_social_media_and_exclude 12 0 0 100%
website/tests/test_profile_author_views.py ProfileAndAuthorViewTests.test_create_social_media_and_exclude.PostDict.getlist 1 0 0 100%
website/tests/test_profile_author_views.py ProfileAndAuthorViewTests.test_edit_author_wrapper_redirects_when_no_author 5 0 0 100%
website/tests/test_profile_author_views.py ProfileAndAuthorViewTests.test_post_create_requires_author 5 0 0 100%
website/tests/test_profile_author_views.py ProfileAndAuthorViewTests.test_post_create_success_when_author 7 0 0 100%
website/tests/test_profile_author_views.py ProfileAndAuthorViewTests.test_reader_edit_helpers 8 0 0 100%
website/tests/test_profile_author_views.py ProfileAndAuthorViewTests.test_reader_edit_helpers.PostDict.getlist 1 1 0 0%
website/tests/test_profile_author_views.py (no function) 17 0 0 100%
website/tests/test_profile_reader_post_more2.py ProfileReaderPostMore2Test.setUp 1 0 0 100%
website/tests/test_profile_reader_post_more2.py ProfileReaderPostMore2Test.test_update_profile_update_existing_author 8 0 0 100%
website/tests/test_profile_reader_post_more2.py ProfileReaderPostMore2Test.test_check_reader_form_save_branch 8 0 0 100%
website/tests/test_profile_reader_post_more2.py ProfileReaderPostMore2Test.test_edit_post_permission_and_owner 11 0 0 100%
website/tests/test_profile_reader_post_more2.py (no function) 13 0 0 100%
website/tests/test_profile_reader_post_views.py ProfileReaderPostViewsTest.setUp 1 0 0 100%
website/tests/test_profile_reader_post_views.py ProfileReaderPostViewsTest.test_update_profile_create_author_from_reader 8 0 0 100%
website/tests/test_profile_reader_post_views.py ProfileReaderPostViewsTest.test_update_profile_create_reader_from_none 8 0 0 100%
website/tests/test_profile_reader_post_views.py ProfileReaderPostViewsTest.test_reader_edit_check_user_form_conflict 7 0 0 100%
website/tests/test_profile_reader_post_views.py ProfileReaderPostViewsTest.test_post_create_requires_author_profile 5 0 0 100%
website/tests/test_profile_reader_post_views.py ProfileReaderPostViewsTest.test_post_create_success_with_author 8 0 0 100%
website/tests/test_profile_reader_post_views.py (no function) 15 0 0 100%
website/tests/test_quick_imports.py test_quick_imports 7 2 0 71%
website/tests/test_quick_imports.py (no function) 3 0 0 100%
website/tests/test_reactions.py ReactionToggleTests.setUp 4 0 0 100%
website/tests/test_reactions.py ReactionToggleTests.test_like_then_switch_to_love_decrements_like_counter 22 0 0 100%
website/tests/test_reactions.py ReactionToggleTests.test_undo_like_removes_relation_and_decrements 13 0 0 100%
website/tests/test_reactions.py ReactionToggleTests.test_multiple_users_counts_and_switching 20 0 0 100%
website/tests/test_reactions.py ReactionToggleTests.test_guest_cannot_toggle_reaction 4 0 0 100%
website/tests/test_reactions.py (no function) 12 0 0 100%
website/tests/test_sign_up_page.py (no function) 0 0 0 100%
website/tests/test_signup_password_validation.py SignUpPasswordValidationTests.setUp 1 0 0 100%
website/tests/test_signup_password_validation.py SignUpPasswordValidationTests.test_rejects_weak_password 3 0 0 100%
website/tests/test_signup_password_validation.py SignUpPasswordValidationTests.test_accepts_strong_password 7 0 0 100%
website/tests/test_signup_password_validation.py (no function) 7 0 0 100%
website/tests/test_smoke_imports.py test_import_website_modules 24 2 0 92%
website/tests/test_smoke_imports.py (no function) 3 0 0 100%
website/tests/test_templatetags.py TemplateTagsTest.test_replace_word_filter 3 0 0 100%
website/tests/test_templatetags.py TemplateTagsTest.test_get_tile_types_fallback_dirs 18 0 0 100%
website/tests/test_templatetags.py (no function) 8 0 0 100%
website/tests/test_views_more.py ViewSmokeTests.setUp 6 0 0 100%
website/tests/test_views_more.py ViewSmokeTests.test_home_pagination_first_page 5 0 0 100%
website/tests/test_views_more.py ViewSmokeTests.test_login_view_get_and_post_invalid 5 0 0 100%
website/tests/test_views_more.py ViewSmokeTests.test_create_post_requires_author_profile 4 0 0 100%
website/tests/test_views_more.py (no function) 12 0 0 100%
website/urls/ErrorUrl.py (no function) 3 0 0 100%
website/urls/HomeUrl.py (no function) 3 0 0 100%
website/urls/LoginUrl.py (no function) 3 0 0 100%
website/urls/LogoutUrl.py (no function) 3 0 0 100%
website/urls/PostUrl.py (no function) 4 0 0 100%
website/urls/ProfileUpdateUrl.py (no function) 3 0 0 100%
website/urls/ReaderEditUrl.py (no function) 3 0 0 100%
website/urls/SearchUrl.py (no function) 3 0 0 100%
website/urls/SignUpUrl.py (no function) 3 0 0 100%
website/urls/TeamUrl.py (no function) 4 0 0 100%
website/urls/__init__.py (no function) 4 0 0 100%
website/utils/__init__.py (no function) 0 0 0 100%
website/utils/sanitizer.py sanitize_html 7 1 0 86%
website/utils/sanitizer.py (no function) 6 0 0 100%
website/utils/youtube_validator.py extract_youtube_video_id 11 11 0 0%
website/utils/youtube_validator.py validate_youtube_url 2 2 0 0%
website/utils/youtube_validator.py create_secure_embed_url 3 3 0 0%
website/utils/youtube_validator.py sanitize_youtube_content 3 3 0 0%
website/utils/youtube_validator.py sanitize_youtube_content.replace_youtube_iframe 5 5 0 0%
website/utils/youtube_validator.py (no function) 16 10 0 38%
website/validators.py LegacyPasswordValidator.validate 11 4 0 64%
website/validators.py LegacyPasswordValidator.get_help_text 1 1 0 0%
website/validators.py (no function) 5 0 0 100%
website/views/AuthorView.py view_author_page 6 0 0 100%
website/views/AuthorView.py edit_author_profile 96 26 0 73%
website/views/AuthorView.py check_request_post 4 0 0 100%
website/views/AuthorView.py check_user_form 8 3 0 62%
website/views/AuthorView.py check_author_form 7 1 0 86%
website/views/AuthorView.py update_social_media 9 0 0 100%
website/views/AuthorView.py create_social_media 7 0 0 100%
website/views/AuthorView.py exclude_social_media 4 0 0 100%
website/views/AuthorView.py set_graduation 1 1 0 0%
website/views/AuthorView.py edit_author 6 1 0 83%
website/views/AuthorView.py (no function) 21 0 0 100%
website/views/ErrorView.py handler404 1 1 0 0%
website/views/ErrorView.py handler500 1 1 0 0%
website/views/ErrorView.py handler403 1 1 0 0%
website/views/ErrorView.py (no function) 4 0 0 100%
website/views/HomeView.py get_home_page 10 2 0 80%
website/views/HomeView.py (no function) 4 0 0 100%
website/views/LoginView.py login_user 43 9 0 79%
website/views/LoginView.py (no function) 7 0 0 100%
website/views/LogoutView.py logout_user 2 2 0 0%
website/views/LogoutView.py (no function) 5 0 0 100%
website/views/PostCreateView.py edit_post 37 10 0 73%
website/views/PostCreateView.py (no function) 11 0 0 100%
website/views/PostView.py post_detail 11 11 0 0%
website/views/PostView.py toggle_like 12 1 0 92%
website/views/PostView.py toggle_love 12 3 0 75%
website/views/PostView.py (no function) 12 0 0 100%
website/views/ProfileUpdateView.py update_profile 47 13 0 72%
website/views/ProfileUpdateView.py (no function) 8 0 0 100%
website/views/ReaderEditView.py reader_edit 17 17 0 0%
website/views/ReaderEditView.py check_request_post 4 0 0 100%
website/views/ReaderEditView.py check_user_form 8 3 0 62%
website/views/ReaderEditView.py check_reader_form 7 1 0 86%
website/views/ReaderEditView.py (no function) 9 0 0 100%
website/views/SearchView.py search_posts 15 2 0 87%
website/views/SearchView.py (no function) 6 0 0 100%
website/views/SignUpView.py sign_up_user 24 1 0 96%
website/views/SignUpView.py create_author 10 10 0 0%
website/views/SignUpView.py create_reader 4 0 0 100%
website/views/SignUpView.py treat_accentuation 4 0 0 100%
website/views/SignUpView.py (no function) 11 0 0 100%
website/views/TeamView.py view_team 3 3 0 0%
website/views/TeamView.py (no function) 4 0 0 100%
website/views/__init__.py (no function) 5 0 0 100%
Total   2127 315 0 85%

No items found using the specified filter.