library coverage report: 98.07%

Files Functions Classes

coverage.py v7.13.5, created at 2026-03-30 10:55 -0700

      Statements   Branches   Total
File function   coverage statements missing excluded   coverage branches partial   coverage
accounts / admin.py (no function)   100.00% 11 0 0   100.00% 0 0   100.00%
accounts / apps.py (no function)   100.00% 4 0 0   100.00% 0 0   100.00%
accounts / forms.py CustomUserCreationForm.clean_username   100.00% 6 0 0   100.00% 0 0   100.00%
accounts / forms.py (no function)   100.00% 14 0 0   100.00% 0 0   100.00%
accounts / models.py CustomUser.__str__   100.00% 1 0 0   100.00% 0 0   100.00%
accounts / models.py CustomUser.get_absolute_url   100.00% 1 0 0   100.00% 0 0   100.00%
accounts / models.py (no function)   100.00% 12 0 0   100.00% 0 0   100.00%
accounts / tests / test_forms.py TestUserCreationForm.test_clean_username   100.00% 9 0 0   100.00% 0 0   100.00%
accounts / tests / test_forms.py (no function)   100.00% 6 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py CustomUserTests.setUp   100.00% 3 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py CustomUserTests.test___str__   100.00% 2 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py CustomUserTests.test_user_get_absolute_url   100.00% 1 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py CustomUserTests.test_create_user   100.00% 5 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py CustomUserTests.test_user_asserts   81.82% 11 2 0   100.00% 0 0   81.82%
accounts / tests / test_models.py CustomUserTests.test_create_superuser   100.00% 5 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py CustomUserTests.test_superuser_asserts   71.43% 7 2 0   100.00% 0 0   71.43%
accounts / tests / test_models.py SignupPageTests.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py SignupPageTests.test_signup_template   100.00% 4 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py SignupPageTests.test_signup_form   100.00% 4 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py LoginPageTests.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py LoginPageTests.test_login_template   100.00% 4 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py LogoutPageTests.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py LogoutPageTests.test_logout_template   100.00% 1 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py PasswordResetFormTests.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py PasswordResetFormTests.test_password_reset_form_template   100.00% 4 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py PasswordResetDoneTests.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py PasswordResetDoneTests.test_password_reset_done_template   100.00% 4 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py PasswordChangeFormTests.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py PasswordChangeFormTests.test_password_change_form_template   100.00% 1 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py PasswordChangeDoneTests.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py PasswordChangeDoneTests.test_password_change_done_template   100.00% 4 0 0   100.00% 0 0   100.00%
accounts / tests / test_models.py (no function)   100.00% 35 0 0   100.00% 0 0   100.00%
accounts / tests / test_urls.py test_detail   100.00% 2 0 0   100.00% 0 0   100.00%
accounts / tests / test_urls.py test_update   100.00% 2 0 0   100.00% 0 0   100.00%
accounts / tests / test_urls.py test_redirect   100.00% 2 0 0   100.00% 0 0   100.00%
accounts / tests / test_urls.py (no function)   100.00% 7 0 0   100.00% 0 0   100.00%
accounts / tests / test_views.py TestUserUpdateView.dummy_get_response   0.00% 1 1 0   100.00% 0 0   0.00%
accounts / tests / test_views.py TestUserUpdateView.test_get_success_url   100.00% 5 0 0   100.00% 0 0   100.00%
accounts / tests / test_views.py TestUserUpdateView.test_get_object   100.00% 5 0 0   100.00% 0 0   100.00%
accounts / tests / test_views.py TestUserUpdateView.test_form_valid   100.00% 14 0 0   100.00% 0 0   100.00%
accounts / tests / test_views.py TestUserRedirectView.test_get_redirect_url   100.00% 5 0 0   100.00% 0 0   100.00%
accounts / tests / test_views.py (no function)   100.00% 17 0 0   100.00% 0 0   100.00%
accounts / urls.py (no function)   100.00% 3 0 0   100.00% 0 0   100.00%
accounts / views.py UserUpdateView.get_success_url   100.00% 1 0 0   100.00% 0 0   100.00%
accounts / views.py UserUpdateView.get_object   100.00% 1 0 0   100.00% 0 0   100.00%
accounts / views.py UserRedirectView.get_redirect_url   100.00% 1 0 0   100.00% 0 0   100.00%
accounts / views.py (no function)   100.00% 21 0 0   100.00% 0 0   100.00%
catalog / admin.py (no function)   100.00% 25 0 0   100.00% 0 0   100.00%
catalog / apps.py (no function)   100.00% 4 0 0   100.00% 0 0   100.00%
catalog / forms.py RenewBookForm.clean_renewal_date   100.00% 6 0 0   100.00% 4 0   100.00%
catalog / forms.py (no function)   100.00% 6 0 0   100.00% 0 0   100.00%
catalog / models.py Genre.__str__   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / models.py Language.__str__   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / models.py Book.__str__   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / models.py Book.get_absolute_url   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / models.py Book.display_genre   0.00% 1 1 0   100.00% 0 0   0.00%
catalog / models.py BookInstance.__str__   0.00% 1 1 0   100.00% 0 0   0.00%
catalog / models.py BookInstance.is_overdue   66.67% 3 1 0   50.00% 2 1   60.00%
catalog / models.py Author.__str__   66.67% 3 1 0   50.00% 2 1   60.00%
catalog / models.py Author.get_absolute_url   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / models.py (no function)   100.00% 56 0 0   100.00% 0 0   100.00%
catalog / tests / test_forms.py RenewBookFormTest.test_renew_form_date_in_past   100.00% 3 0 0   100.00% 0 0   100.00%
catalog / tests / test_forms.py RenewBookFormTest.test_renew_form_date_too_far_in_future   100.00% 3 0 0   100.00% 0 0   100.00%
catalog / tests / test_forms.py RenewBookFormTest.test_renew_form_date_today   100.00% 3 0 0   100.00% 0 0   100.00%
catalog / tests / test_forms.py RenewBookFormTest.test_renew_form_date_max   100.00% 3 0 0   100.00% 0 0   100.00%
catalog / tests / test_forms.py RenewBookFormTest.test_renew_form_date_field_label   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_forms.py RenewBookFormTest.test_renew_form_date_field_help_text   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_forms.py (no function)   100.00% 10 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py BookModelTest.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py BookModelTest.test_book___str__   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py BookModelTest.test_get_absolute_url   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py GenreModelTest.setUp   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py GenreModelTest.test_genre___str__   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py LanguageModelTest.setUp   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py LanguageModelTest.test_genre___str__   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py AuthorModelTest.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py AuthorModelTest.test_first_name_label   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py AuthorModelTest.test_last_name_label   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py AuthorModelTest.test_date_of_birth_label   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py AuthorModelTest.test_date_of_death_label   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py AuthorModelTest.test_first_name_max_length   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py AuthorModelTest.test_last_name_max_length   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py AuthorModelTest.test_get_absolute_url   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / tests / test_models.py AuthorModelTest.test_middlename__str__   66.67% 3 1 0   50.00% 2 1   60.00%
catalog / tests / test_models.py (no function)   100.00% 24 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py AuthorListViewTest.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py AuthorListViewTest.setUpTestData   100.00% 3 0 0   100.00% 2 0   100.00%
catalog / tests / test_views.py AuthorListViewTest.test_view_url_exists_at_desired_location   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py AuthorListViewTest.test_view_url_accessible_by_name   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py AuthorListViewTest.test_view_uses_correct_template   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py AuthorListViewTest.test_pagination_is_ten   100.00% 4 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py AuthorListViewTest.test_lists_all_authors   100.00% 5 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py LoanedBookInstancesByUserListViewTest.setUp   100.00% 19 0 0   100.00% 4 0   100.00%
catalog / tests / test_views.py LoanedBookInstancesByUserListViewTest.test_redirect_if_not_logged_in   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py LoanedBookInstancesByUserListViewTest.test_logged_in_uses_correct_template   100.00% 5 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py LoanedBookInstancesByUserListViewTest.test_only_borrowed_books_in_list   100.00% 17 0 0   100.00% 4 0   100.00%
catalog / tests / test_views.py LoanedBookInstancesByUserListViewTest.test_pages_paginated_to_ten   100.00% 8 0 0   100.00% 2 0   100.00%
catalog / tests / test_views.py LoanedBookInstancesByUserListViewTest.test_pages_ordered_by_due_date   100.00% 13 0 0   100.00% 6 0   100.00%
catalog / tests / test_views.py RenewBookInstancesViewTest.setUp   100.00% 18 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py RenewBookInstancesViewTest.test_redirect_if_not_logged_in   100.00% 3 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py RenewBookInstancesViewTest.test_forbidden_if_logged_in_but_not_correct_permission   100.00% 3 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py RenewBookInstancesViewTest.test_logged_in_with_permission_borrowed_book   100.00% 3 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py RenewBookInstancesViewTest.test_logged_in_with_permission_another_users_borrowed_book   100.00% 3 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py RenewBookInstancesViewTest.test_uses_correct_template   100.00% 4 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py RenewBookInstancesViewTest.test_form_renewal_date_initially_has_date_three_weeks_in_future   100.00% 5 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py RenewBookInstancesViewTest.test_redirects_to_all_borrowed_book_list_on_success   100.00% 4 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py RenewBookInstancesViewTest.test_HTTP404_for_invalid_book_if_logged_in   100.00% 5 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py AuthorCreateViewTest.setUp   100.00% 8 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py AuthorCreateViewTest.test_redirect_if_not_logged_in   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py AuthorCreateViewTest.test_forbidden_if_logged_in_but_not_correct_permission   100.00% 3 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py AuthorCreateViewTest.test_logged_in_with_permission   100.00% 3 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py AuthorCreateViewTest.test_uses_correct_template   100.00% 4 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py AuthorCreateViewTest.test_form_date_of_birth_initially_set_to_expected_date   100.00% 7 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py AuthorCreateViewTest.test_redirects_to_detail_view_on_success   100.00% 4 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py IndexTests.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py IndexTests.test_index_status_code   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py IndexTests.test_index_url_name   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py IndexTests.test_index_contains_correct_html   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py IndexTests.test_index_does_not_contain_incorrect_html   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py IndexTests.test_index_template   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py IndexTests.test_index_page_url_resolves_index   100.00% 2 0 0   100.00% 0 0   100.00%
catalog / tests / test_views.py (no function)   100.00% 51 0 0   100.00% 0 0   100.00%
catalog / urls.py (no function)   100.00% 3 0 0   100.00% 0 0   100.00%
catalog / views.py index   100.00% 8 0 0   100.00% 0 0   100.00%
catalog / views.py LoanedBooksByUserListView.get_queryset   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / views.py LoanedBooksAllListView.get_queryset   100.00% 1 0 0   100.00% 0 0   100.00%
catalog / views.py renew_book_librarian   100.00% 11 0 0   75.00% 4 1   93.33%
catalog / views.py SearchResultsListView.get_queryset   0.00% 2 2 0   100.00% 0 0   0.00%
catalog / views.py (no function)   100.00% 69 0 0   100.00% 0 0   100.00%
config / test.py (no function)   100.00% 5 0 0   100.00% 0 0   100.00%
config / urls.py (no function)   100.00% 5 0 1   100.00% 0 0   100.00%
pages / admin.py (no function)   100.00% 1 0 0   100.00% 0 0   100.00%
pages / apps.py (no function)   100.00% 4 0 0   100.00% 0 0   100.00%
pages / forms.py (no function)   100.00% 5 0 0   100.00% 0 0   100.00%
pages / models.py (no function)   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_forms.py ContactFormTests.test_contact_page_form_is_valid   100.00% 2 0 0   100.00% 0 0   100.00%
pages / tests / test_forms.py ContactFormTests.test_contact_form_is_invalid   100.00% 2 0 0   100.00% 0 0   100.00%
pages / tests / test_forms.py ContactFormTests.test_header_injection   71.43% 7 2 0   100.00% 0 0   71.43%
pages / tests / test_forms.py (no function)   100.00% 6 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py HomePageTests.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py HomePageTests.test_homepage_status_code   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py HomePageTests.test_homepage_template   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py HomePageTests.test_homepage_contains_correct_html   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py HomePageTests.test_homepage_does_not_contain_incorrect_html   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py HomePageTests.test_homepage_url_resolves_homepageview   100.00% 2 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py AboutPageTests.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py AboutPageTests.test_about_page_status_code   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py AboutPageTests.test_about_page_template   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py AboutPageTests.test_about_page_contains_correct_html   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py AboutPageTests.test_about_page_does_not_contain_incorrect_html   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py AboutPageTests.test_about_page_url_resolves_about_pageview   100.00% 2 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py ContactViewTests.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py ContactViewTests.test_contact_page_status_code   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py ContactViewTests.test_contact_page_url_resolves_contactpageview   100.00% 2 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py ContactViewTests.test_contact_page_template   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py ContactViewTests.test_contact_page_contains_correct_html   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py ContactViewTests.test_contact_page_does_not_contain_incorrect_html   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py SuccessViewTests.setUp   100.00% 2 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py SuccessViewTests.test_success_page_status_code   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py SuccessViewTests.test_success_page_template   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py SuccessViewTests.test_success_page_contains_correct_html   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py SuccessViewTests.test_success_page_does_not_contain_incorrect_html   100.00% 1 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py SuccessViewTests.test_success_page_url_resolves_success_page_view   100.00% 2 0 0   100.00% 0 0   100.00%
pages / tests / test_views.py (no function)   100.00% 31 0 0   100.00% 0 0   100.00%
pages / urls.py (no function)   100.00% 3 0 0   100.00% 0 0   100.00%
pages / views.py ContactView   100.00% 13 0 0   100.00% 4 0   100.00%
pages / views.py SuccessView   100.00% 1 0 0   100.00% 0 0   100.00%
pages / views.py (no function)   100.00% 11 0 0   100.00% 0 0   100.00%
Total     98.44% 896 14 1   88.89% 36 4   98.07%

No items found using the specified filter.