Merge branch 'refactor-tests' into 'master'
Heavy refactoring of test cases This commit simplifies a lot the process of writing tests that use VCR. Just inherit from the new class instead of Django's TestCase. It also makes tests more reliable since a different tape will be created for each tests, including their setup and teardown phase. No code change outside the tests. See merge request !90 |
---|
src/postorius/tests/fixtures/vcr_cassettes/AddModeratorTest.test_new_moderator_added.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_add_remove_owner.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_as_owner_self_last.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/AddRemoveOwnerTest.test_remove_owner_by_owner.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_new_domain_created_with_owner.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/DomainCreationTest.test_permission_denied.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_anonymous.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_basic_user.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_moderators.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_access_owners.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/DomainDeleteTest.test_domain_delete_confirm.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_contains_the_domains.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_moderators.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_owners.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_public.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/DomainIndexPageTest.test_domain_index_not_accessible_to_unpriveleged_user.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_access_for_superuser.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_add_ban_duplicate.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_create_form.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_context_contains_delete_forms.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_ban.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_del_unknown_ban.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_login_redirect_for_anonymous.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListBansTest.test_no_access_for_basic_user.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_new_list_created_with_owner.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListCreationTest.test_permission_denied.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListIndexPageTest.test_list_index_contains_the_lists.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_not_accessible_for_moderator.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_owner.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_accessible_for_superuser.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_for_unprivileged_users.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListMembersAccessTest.test_page_not_accessible_if_not_logged_in.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_search_members_1.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListMembersTest.test_show_members_page.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archivers.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_archiving_policy.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_not_accessible_for_moderator.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_owner.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_accessible_for_superuser.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_for_unprivileged_users.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSettingsTest.test_page_not_accessible_if_not_logged_in.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_owner.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_displayed_to_superuser.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_metrics_not_displayed_to_moderator.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_moderator.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_is_admin_secondary_owner.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_in.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_logged_out.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_moderator.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_owner.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_list_summary_shows_all_addresses.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_metrics_not_displayed_to_anonymous.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ListSummaryPageTest.test_unsubscribe_button_is_available.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_based_preferences.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_address_preferences_not_logged_in.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_preferences_none.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_logged_in.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_no_mailman_user.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/MailmanUserTest.test_subscriptions_not_logged_in.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_created_when_flag_is_on.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/ModelTest.test_mailman_user_not_created_when_flag_is_off.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationForm.test_email_used_by_django_auth_is_invalid.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationForm.test_email_used_by_expired_confirmation_profile_is_valid.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationForm.test_email_used_by_mailman_is_invalid.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationForm.test_invalid_email_is_not_valid.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationForm.test_valid_email_is_valid.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestAddressActivationLinkSuccess.test_add_address.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_form_with_smtp_exception.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_invalid_form_shows_error_msg.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_valid_form_redirects_on_success.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_post_valid_form_shows_success_message.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestProfile.test_view_contains_form.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_mod.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_secondary_open.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_mod.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_subscribe_open.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/TestSubscription.test_unknown_address.yaml 0 → 100644 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_bans.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_bans_add_ban.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_bans_add_duplicate.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_bans_del_ban.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_bans_del_unknown_ban.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_bans_delete_forms.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_members.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_members_access.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_members_page.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_members_search_members.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_members_show_members_page.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_settings.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_settings_access.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_settings_archivers.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/list_settings_archiving.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/mailman_user.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/mailman_user_address_prefs.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/mailman_user_none_prefs.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/mailman_user_subscriptions_no_mm_user.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_address_activation_form.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_address_activation_link.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription-2.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_change_subscription.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_domain_delete.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_domain_delete_confirm.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_domain_delete_delete.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_domain_index.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_creation.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_index.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_members_add_moderator.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_members_new_moderator_added.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_add_remove.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_by_owner.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_members_owner_self_last.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_primary.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_mod_secondary.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_primary.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_open_secondary.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_subscription_unknown.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_summary.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_anonymous.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_moderator.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_owner.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_metrics_superuser.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_moderator.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_owner.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_moderator.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_list_summary_secondary_owner.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_model-2.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_model.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/fixtures/vcr_cassettes/test_user_profile.yaml 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_address_activation.py |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_domain_delete.py |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_domain_index.py |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_domain_new.py |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_list_bans.py |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_list_index.py |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_list_members.py |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_list_new.py |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_list_settings.py |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_list_summary.py |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_models.py |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_profile.py |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_subscriptions.py |
---|
Too large (Show diff)
|
src/postorius/tests/mailman_api_tests/test_user.py |
---|
Too large (Show diff)
|
src/postorius/tests/test_user_subscriptions.py 100644 → 0 |
---|
Too large (Show diff)
|
src/postorius/tests/utils.py |
---|
Too large (Show diff)
|