mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 02:36:02 +02:00
remove bad test + lint
This commit is contained in:
parent
bd603f69fb
commit
ec1df251b8
2 changed files with 2 additions and 9 deletions
|
@ -6,8 +6,8 @@ from django.db.models import Value, CharField, Q
|
||||||
from django.db.models.functions import Concat, Coalesce
|
from django.db.models.functions import Concat, Coalesce
|
||||||
from django.http import HttpResponseRedirect
|
from django.http import HttpResponseRedirect
|
||||||
from registrar.utility.admin_helpers import (
|
from registrar.utility.admin_helpers import (
|
||||||
get_action_needed_reason_default_email,
|
get_action_needed_reason_default_email,
|
||||||
get_rejection_reason_default_email,
|
get_rejection_reason_default_email,
|
||||||
get_field_links_as_list,
|
get_field_links_as_list,
|
||||||
)
|
)
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
|
@ -337,13 +337,6 @@ class TestDomainRequest(TestCase):
|
||||||
domain_request, msg, "withdraw", 1, expected_content="withdrawn", expected_email=user.email
|
domain_request, msg, "withdraw", 1, expected_content="withdrawn", expected_email=user.email
|
||||||
)
|
)
|
||||||
|
|
||||||
@less_console_noise_decorator
|
|
||||||
def test_reject_sends_email(self):
|
|
||||||
msg = "Create a domain request and reject it and see if email was sent."
|
|
||||||
user, _ = User.objects.get_or_create(username="testy")
|
|
||||||
domain_request = completed_domain_request(status=DomainRequest.DomainRequestStatus.APPROVED, user=user)
|
|
||||||
self.check_email_sent(domain_request, msg, "reject", 1, expected_content="Hi", expected_email=user.email)
|
|
||||||
|
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_reject_with_prejudice_does_not_send_email(self):
|
def test_reject_with_prejudice_does_not_send_email(self):
|
||||||
msg = "Create a domain request and reject it with prejudice and see if email was sent."
|
msg = "Create a domain request and reject it with prejudice and see if email was sent."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue