Coverage report: 85%

Files Functions Classes

coverage.py v7.5.1, created at 2024-05-18 23:09 +0000

File function statements missing excluded coverage
config.py map_legacy_config 3 1 0 67%
config.py (no function) 62 1 11 98%
config_local.py (no function) 5 0 0 100%
ivatar/__init__.py (no function) 2 0 0 100%
ivatar/context_processors.py basepage 17 0 1 100%
ivatar/context_processors.py (no function) 6 0 0 100%
ivatar/ivataraccount/__init__.py (no function) 2 0 0 100%
ivatar/ivataraccount/admin.py (no function) 14 0 0 100%
ivatar/ivataraccount/forms.py AddEmailForm.clean_email 1 0 0 100%
ivatar/ivataraccount/forms.py AddEmailForm.save 22 0 0 100%
ivatar/ivataraccount/forms.py UploadPhotoForm.save 8 0 0 100%
ivatar/ivataraccount/forms.py AddOpenIDForm.clean_openid 3 0 0 100%
ivatar/ivataraccount/forms.py AddOpenIDForm.save 11 0 0 100%
ivatar/ivataraccount/forms.py (no function) 36 0 0 100%
ivatar/ivataraccount/gravatar.py get_photo 11 0 7 100%
ivatar/ivataraccount/gravatar.py (no function) 7 0 0 100%
ivatar/ivataraccount/migrations/0001_initial.py (no function) 8 0 0 100%
ivatar/ivataraccount/migrations/0002_openidassociation_openidnonce.py (no function) 4 0 0 100%
ivatar/ivataraccount/migrations/0003_auto_20180508_0637.py (no function) 5 0 0 100%
ivatar/ivataraccount/migrations/0004_auto_20180508_0742.py (no function) 5 0 0 100%
ivatar/ivataraccount/migrations/0005_auto_20180522_1155.py (no function) 4 0 0 100%
ivatar/ivataraccount/migrations/0006_auto_20180626_1445.py (no function) 4 0 0 100%
ivatar/ivataraccount/migrations/0007_auto_20180627_0624.py add_sha256 2 0 1 100%
ivatar/ivataraccount/migrations/0007_auto_20180627_0624.py (no function) 6 0 0 100%
ivatar/ivataraccount/migrations/0008_userpreference.py add_preference_to_user 3 0 2 100%
ivatar/ivataraccount/migrations/0008_userpreference.py (no function) 7 0 0 100%
ivatar/ivataraccount/migrations/0009_auto_20180705_1152.py (no function) 4 0 0 100%
ivatar/ivataraccount/migrations/0010_auto_20180705_1201.py (no function) 4 0 0 100%
ivatar/ivataraccount/migrations/0011_auto_20181107_1550.py (no function) 4 0 0 100%
ivatar/ivataraccount/migrations/0012_auto_20181107_1732.py (no function) 4 0 0 100%
ivatar/ivataraccount/migrations/0013_auto_20181203_1421.py (no function) 4 0 0 100%
ivatar/ivataraccount/migrations/0014_auto_20190218_1602.py (no function) 4 0 0 100%
ivatar/ivataraccount/migrations/0015_auto_20200225_0934.py (no function) 4 0 0 100%
ivatar/ivataraccount/migrations/0016_auto_20210413_0904.py (no function) 4 0 0 100%
ivatar/ivataraccount/migrations/0017_auto_20210528_1314.py (no function) 4 0 0 100%
ivatar/ivataraccount/migrations/__init__.py (no function) 0 0 0 100%
ivatar/ivataraccount/models.py file_format 9 0 0 100%
ivatar/ivataraccount/models.py pil_format 10 0 0 100%
ivatar/ivataraccount/models.py UserPreference.__str__ 1 0 0 100%
ivatar/ivataraccount/models.py Photo.import_image 24 7 7 71%
ivatar/ivataraccount/models.py Photo.save 10 0 0 100%
ivatar/ivataraccount/models.py Photo.perform_crop 36 14 0 61%
ivatar/ivataraccount/models.py Photo.__str__ 1 1 0 0%
ivatar/ivataraccount/models.py ConfirmedEmailManager.create_confirmed_email 11 0 0 100%
ivatar/ivataraccount/models.py ConfirmedEmail.set_photo 2 0 0 100%
ivatar/ivataraccount/models.py ConfirmedEmail.save 3 0 0 100%
ivatar/ivataraccount/models.py ConfirmedEmail.__str__ 1 1 0 0%
ivatar/ivataraccount/models.py UnconfirmedEmail.save 5 0 0 100%
ivatar/ivataraccount/models.py UnconfirmedEmail.send_confirmation_mail 11 2 0 82%
ivatar/ivataraccount/models.py UnconfirmedEmail.__str__ 1 1 0 0%
ivatar/ivataraccount/models.py UnconfirmedOpenId.__str__ 1 1 0 0%
ivatar/ivataraccount/models.py ConfirmedOpenId.set_photo 2 0 0 100%
ivatar/ivataraccount/models.py ConfirmedOpenId.save 9 0 3 100%
ivatar/ivataraccount/models.py ConfirmedOpenId.__str__ 1 1 0 0%
ivatar/ivataraccount/models.py OpenIDNonce.__str__ 1 1 0 0%
ivatar/ivataraccount/models.py OpenIDAssociation.__str__ 1 1 0 0%
ivatar/ivataraccount/models.py DjangoOpenIDStore.storeAssociation 0 0 3 100%
ivatar/ivataraccount/models.py DjangoOpenIDStore.getAssociation 0 0 26 100%
ivatar/ivataraccount/models.py DjangoOpenIDStore.removeAssociation 0 0 6 100%
ivatar/ivataraccount/models.py DjangoOpenIDStore.useNonce 0 0 10 100%
ivatar/ivataraccount/models.py DjangoOpenIDStore.cleanupNonces 0 0 3 100%
ivatar/ivataraccount/models.py DjangoOpenIDStore.cleanupAssociations 0 0 2 100%
ivatar/ivataraccount/models.py (no function) 121 0 6 100%
ivatar/ivataraccount/test_views.py Tester.login 1 0 0 100%
ivatar/ivataraccount/test_views.py Tester.setUp 1 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_new_user 7 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_new_user_twice 7 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_set_password 11 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_add_email 8 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_confirm_email 10 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_confirm_email_w_invalid_auth_key 7 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_confirm_email_w_inexisting_auth_key 7 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_remove_confirmed_email 11 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_remove_not_existing_confirmed_email 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_remove_unconfirmed_email 7 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_gravatar_photo_import 12 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_raw_image 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_delete_photo 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_delete_inexisting_photo 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_too_many_unconfirmed_email 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_add_mail_address_twice 4 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_add_already_confirmed_email_self 2 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_add_already_confirmed_email_other 6 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_remove_unconfirmed_non_existing_email 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_upload_image 9 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_upload_too_many_images 4 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_upload_too_big_image 4 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_upload_invalid_image 4 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_upload_invalid_image_format 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_upload_gif_image 12 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_upload_jpg_image 12 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_upload_webp_image 12 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_upload_unsupported_tif_image 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_automatic_photo_assign_to_confirmed_mail 4 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_assign_photo_to_email 8 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_no_photo_to_email 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_assign_photo_to_email_wo_photo_for_testing_template 4 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_assign_invalid_photo_id_to_email 7 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_post_to_assign_photo_without_photo_id 7 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_assign_photo_to_inexisting_mail 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_import_photo_with_inexisting_email 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_import_nothing 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_add_openid 13 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_add_openid_twice 15 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_assign_photo_to_openid 8 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_assign_photo_to_openid_wo_photo_for_testing_template 4 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_assign_invalid_photo_id_to_openid 6 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_post_to_assign_photo_openid_without_photo_id 7 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_assign_photo_to_openid_inexisting_openid 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_remove_confirmed_openid 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_remove_not_existing_confirmed_openid 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_remove_unconfirmed_openid 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_remove_unconfirmed_inexisting_openid 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_openid_redirect_view 4 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_set_photo_on_openid 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_avatar_url_mail 9 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_avatar_url_openid 7 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_avatar_url_inexisting_mail_digest 13 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_avatar_url_inexisting_mail_digest_gravatarproxy_disabled 7 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_avatar_url_inexisting_mail_digest_w_default_mm 3 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_avatar_url_inexisting_mail_digest_w_default_mm_gravatarproxy_disabled 4 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_avatar_url_inexisting_mail_digest_wo_default 9 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_avatar_url_inexisting_mail_digest_wo_default_gravatarproxy_disabled 4 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_avatar_url_default 1 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_avatar_url_default_gravatarproxy_disabled 1 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_avatar_url_default_external 6 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_avatar_url_default_external_trusted 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_avatar_url_default_external_gravatarproxy_disabled 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_crop_photo 8 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_password_change_view 4 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_password_change_view_post_wrong_old_pw 3 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_password_change_view_post_wrong_new_password1 3 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_password_change_view_post_wrong_new_password2 3 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_password_change_view_post_common_password 3 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_profile_must_list_first_and_lastname 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_password_reset_page 2 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_password_reset_wo_mail 6 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_password_reset_w_mail 8 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_password_reset_w_confirmed_mail 10 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_export 24 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_upload_export 16 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_prefs_page 2 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_delete_user 5 0 0 100%
ivatar/ivataraccount/test_views.py Tester.test_confirm_already_confirmed 10 0 0 100%
ivatar/ivataraccount/test_views.py (no function) 115 0 0 100%
ivatar/ivataraccount/urls.py (no function) 20 0 0 100%
ivatar/ivataraccount/views.py openid_logging 0 0 2 100%
ivatar/ivataraccount/views.py CreateView.form_valid 18 7 1 61%
ivatar/ivataraccount/views.py CreateView.get 4 1 0 75%
ivatar/ivataraccount/views.py PasswordSetView.get_form_kwargs 3 0 0 100%
ivatar/ivataraccount/views.py PasswordSetView.form_valid 3 0 0 100%
ivatar/ivataraccount/views.py AddEmailView.form_valid 4 0 0 100%
ivatar/ivataraccount/views.py RemoveUnconfirmedEmailView.post 7 0 0 100%
ivatar/ivataraccount/views.py ConfirmEmailView.get 20 0 0 100%
ivatar/ivataraccount/views.py RemoveConfirmedEmailView.post 7 0 0 100%
ivatar/ivataraccount/views.py AssignPhotoEmailView.post 20 0 0 100%
ivatar/ivataraccount/views.py AssignPhotoEmailView.get_context_data 3 0 0 100%
ivatar/ivataraccount/views.py AssignPhotoOpenIDView.post 20 1 0 95%
ivatar/ivataraccount/views.py AssignPhotoOpenIDView.get_context_data 3 0 0 100%
ivatar/ivataraccount/views.py ImportPhotoView.get_context_data 22 22 0 0%
ivatar/ivataraccount/views.py ImportPhotoView.post 26 6 2 77%
ivatar/ivataraccount/views.py RawImageView.get 4 1 0 75%
ivatar/ivataraccount/views.py DeletePhotoView.get 8 0 0 100%
ivatar/ivataraccount/views.py UploadPhotoView.post 5 0 0 100%
ivatar/ivataraccount/views.py UploadPhotoView.form_valid 10 0 0 100%
ivatar/ivataraccount/views.py AddOpenIDView.form_valid 4 0 0 100%
ivatar/ivataraccount/views.py RemoveUnconfirmedOpenIDView.post 5 0 2 100%
ivatar/ivataraccount/views.py RemoveConfirmedOpenIDView.post 12 1 0 92%
ivatar/ivataraccount/views.py RedirectOpenIDView.get 11 0 13 100%
ivatar/ivataraccount/views.py ConfirmOpenIDView.do_request 0 0 34 100%
ivatar/ivataraccount/views.py ConfirmOpenIDView.get 0 0 2 100%
ivatar/ivataraccount/views.py ConfirmOpenIDView.post 0 0 2 100%
ivatar/ivataraccount/views.py CropPhotoView.get 4 0 0 100%
ivatar/ivataraccount/views.py CropPhotoView.post 14 8 0 43%
ivatar/ivataraccount/views.py UserPreferenceView.post 29 29 0 0%
ivatar/ivataraccount/views.py UserPreferenceView.get 1 0 0 100%
ivatar/ivataraccount/views.py UserPreferenceView.get_object 2 2 0 0%
ivatar/ivataraccount/views.py UploadLibravatarExportView.post 35 33 0 6%
ivatar/ivataraccount/views.py UploadLibravatarExportView.form_valid 7 0 0 100%
ivatar/ivataraccount/views.py ResendConfirmationMailView.get 8 8 2 0%
ivatar/ivataraccount/views.py IvatarLoginView.get 4 1 0 75%
ivatar/ivataraccount/views.py ProfileView.get 10 7 0 30%
ivatar/ivataraccount/views.py ProfileView.get_context_data 6 0 0 100%
ivatar/ivataraccount/views.py ProfileView._confirm_claimed_openid 12 10 0 17%
ivatar/ivataraccount/views.py PasswordResetView.post 17 3 0 82%
ivatar/ivataraccount/views.py DeleteAccountView.get 1 0 0 100%
ivatar/ivataraccount/views.py DeleteAccountView.post 9 4 0 56%
ivatar/ivataraccount/views.py ExportView.get 1 0 0 100%
ivatar/ivataraccount/views.py ExportView.post 27 0 0 100%
ivatar/ivataraccount/views.py ExportView.post.xml_header 1 0 0 100%
ivatar/ivataraccount/views.py ExportView.post.xml_footer 1 0 0 100%
ivatar/ivataraccount/views.py ExportView.post.xml_account 3 0 0 100%
ivatar/ivataraccount/views.py ExportView.post.xml_email 5 0 0 100%
ivatar/ivataraccount/views.py ExportView.post.xml_openid 5 0 0 100%
ivatar/ivataraccount/views.py ExportView.post.xml_photos 7 0 0 100%
ivatar/ivataraccount/views.py (no function) 179 0 7 100%
ivatar/middleware.py MultipleProxyMiddleware.process_request 2 1 0 50%
ivatar/middleware.py (no function) 4 0 0 100%
ivatar/settings.py (no function) 28 0 0 100%
ivatar/test_auxiliary.py Tester.setUp 1 0 0 100%
ivatar/test_auxiliary.py Tester.test_pil_format 6 0 0 100%
ivatar/test_auxiliary.py Tester.test_userprefs_str 2 0 0 100%
ivatar/test_auxiliary.py (no function) 11 0 0 100%
ivatar/test_static_pages.py Tester.login 1 1 0 0%
ivatar/test_static_pages.py Tester.setUp 1 0 0 100%
ivatar/test_static_pages.py Tester.test_contact_page 2 0 0 100%
ivatar/test_static_pages.py Tester.test_description_page 2 0 0 100%
ivatar/test_static_pages.py Tester.test_security_page 2 0 0 100%
ivatar/test_static_pages.py (no function) 22 0 0 100%
ivatar/test_utils.py Tester.test_openid_variations 20 0 0 100%
ivatar/test_utils.py Tester.test_is_trusted_url 12 0 0 100%
ivatar/test_utils.py (no function) 6 0 0 100%
ivatar/test_views.py Tester.login 1 0 0 100%
ivatar/test_views.py Tester.setUp 1 0 0 100%
ivatar/test_views.py Tester.test_incorrect_digest 2 0 0 100%
ivatar/test_views.py Tester.test_stats 9 0 0 100%
ivatar/test_views.py Tester.test_logout 5 0 0 100%
ivatar/test_views.py (no function) 23 0 0 100%
ivatar/test_wsgi.py TestCase.test_run_wsgi 2 0 0 100%
ivatar/test_wsgi.py (no function) 8 0 0 100%
ivatar/tools/__init__.py (no function) 0 0 0 100%
ivatar/tools/forms.py CheckForm.clean 16 8 0 50%
ivatar/tools/forms.py CheckForm.clean_openid 2 0 0 100%
ivatar/tools/forms.py CheckForm.clean_mail 2 0 0 100%
ivatar/tools/forms.py (no function) 19 0 0 100%
ivatar/tools/test_views.py Tester.login 1 0 0 100%
ivatar/tools/test_views.py Tester.setUp 1 0 0 100%
ivatar/tools/test_views.py Tester.test_check_mail 8 0 0 100%
ivatar/tools/test_views.py Tester.test_check_openid 7 0 0 100%
ivatar/tools/test_views.py Tester.test_check_domain 7 0 0 100%
ivatar/tools/test_views.py (no function) 22 0 0 100%
ivatar/tools/urls.py (no function) 4 0 0 100%
ivatar/tools/views.py CheckDomainView.form_valid 12 0 0 100%
ivatar/tools/views.py CheckView.form_valid 36 3 0 92%
ivatar/tools/views.py lookup_avatar_server 27 9 0 67%
ivatar/tools/views.py srv_hostname 29 25 0 14%
ivatar/tools/views.py lookup_ip_address 20 7 0 65%
ivatar/tools/views.py (no function) 26 0 0 100%
ivatar/urls.py (no function) 20 3 0 85%
ivatar/utils.py random_string 1 0 0 100%
ivatar/utils.py openid_variations 8 0 0 100%
ivatar/utils.py mm_ng 32 32 0 0%
ivatar/utils.py is_trusted_url 24 1 0 96%
ivatar/utils.py resize_animated_gif 6 6 0 0%
ivatar/utils.py resize_animated_gif._thumbnail_frames 4 4 0 0%
ivatar/utils.py (no function) 11 0 0 100%
ivatar/views.py get_size 15 4 0 73%
ivatar/views.py CachingHttpResponse.__init__ 3 0 0 100%
ivatar/views.py AvatarImageView.options 3 3 0 0%
ivatar/views.py AvatarImageView.get 153 71 0 54%
ivatar/views.py GravatarProxyView.get 51 34 0 33%
ivatar/views.py GravatarProxyView.get.redir_default 4 1 0 75%
ivatar/views.py StatsView.get 2 0 0 100%
ivatar/views.py (no function) 42 0 0 100%
ivatar/wsgi.py (no function) 4 0 0 100%
manage.py (no function) 7 0 2 100%
setup.py (no function) 2 2 0 0%
Total   2622 391 157 85%

No items found using the specified filter.