From cb42a1b88dce92831e4ca27d7b0ecafcb0aa3a5b Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Thu, 3 Aug 2023 21:07:36 +0000 Subject: [PATCH] test_email_notifications: These fixtures are markdown files, not HTML. --- ...rs_test.html => email_base_headers_no_headers_test.md} | 0 ..._base_headers_test.html => email_base_headers_test.md} | 0 zerver/tests/test_email_notifications.py | 8 ++++---- 3 files changed, 4 insertions(+), 4 deletions(-) rename zerver/tests/fixtures/email/custom_emails/{email_base_headers_no_headers_test.html => email_base_headers_no_headers_test.md} (100%) rename zerver/tests/fixtures/email/custom_emails/{email_base_headers_test.html => email_base_headers_test.md} (100%) diff --git a/zerver/tests/fixtures/email/custom_emails/email_base_headers_no_headers_test.html b/zerver/tests/fixtures/email/custom_emails/email_base_headers_no_headers_test.md similarity index 100% rename from zerver/tests/fixtures/email/custom_emails/email_base_headers_no_headers_test.html rename to zerver/tests/fixtures/email/custom_emails/email_base_headers_no_headers_test.md diff --git a/zerver/tests/fixtures/email/custom_emails/email_base_headers_test.html b/zerver/tests/fixtures/email/custom_emails/email_base_headers_test.md similarity index 100% rename from zerver/tests/fixtures/email/custom_emails/email_base_headers_test.html rename to zerver/tests/fixtures/email/custom_emails/email_base_headers_test.md diff --git a/zerver/tests/test_email_notifications.py b/zerver/tests/test_email_notifications.py index b757a23869..662beec543 100644 --- a/zerver/tests/test_email_notifications.py +++ b/zerver/tests/test_email_notifications.py @@ -90,7 +90,7 @@ class TestCustomEmails(ZulipTestCase): def test_send_custom_email_headers(self) -> None: hamlet = self.example_user("hamlet") markdown_template_path = ( - "zerver/tests/fixtures/email/custom_emails/email_base_headers_test.html" + "zerver/tests/fixtures/email/custom_emails/email_base_headers_test.md" ) send_custom_email( UserProfile.objects.filter(id=hamlet.id), @@ -110,7 +110,7 @@ class TestCustomEmails(ZulipTestCase): from_name = "from_name_test" email_subject = "subject_test" markdown_template_path = ( - "zerver/tests/fixtures/email/custom_emails/email_base_headers_no_headers_test.html" + "zerver/tests/fixtures/email/custom_emails/email_base_headers_no_headers_test.md" ) from zerver.lib.send_email import NoEmailArgumentError @@ -142,7 +142,7 @@ class TestCustomEmails(ZulipTestCase): from_name = "from_name_test" email_subject = "subject_test" markdown_template_path = ( - "zerver/tests/fixtures/email/custom_emails/email_base_headers_test.html" + "zerver/tests/fixtures/email/custom_emails/email_base_headers_test.md" ) from zerver.lib.send_email import DoubledEmailArgumentError @@ -176,7 +176,7 @@ class TestCustomEmails(ZulipTestCase): non_admin_user = self.example_user("cordelia") markdown_template_path = ( - "zerver/tests/fixtures/email/custom_emails/email_base_headers_test.html" + "zerver/tests/fixtures/email/custom_emails/email_base_headers_test.md" ) send_custom_email( UserProfile.objects.filter(id__in=(admin_user.id, non_admin_user.id)),