From a32ec351ca395f21f8436e5f75d952f0dd2e03d9 Mon Sep 17 00:00:00 2001 From: asaki222 Date: Mon, 4 Nov 2024 09:10:14 -0500 Subject: [PATCH] minor fixes --- .../templates/includes/domain_request_status_manage.html | 2 +- src/registrar/templates/includes/organization_address.html | 2 +- src/registrar/tests/test_admin_request.py | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/registrar/templates/includes/domain_request_status_manage.html b/src/registrar/templates/includes/domain_request_status_manage.html index d92ca1bbb..2a254df4b 100644 --- a/src/registrar/templates/includes/domain_request_status_manage.html +++ b/src/registrar/templates/includes/domain_request_status_manage.html @@ -163,7 +163,7 @@ {% endif %} - {% if DomainRequest.get_federal_type %} + {% if DomainRequest.get_federal_type_display %} {% include "includes/summary_item.html" with title='Federal government branch' value=DomainRequest.get_federal_type_display heading_level=heading_level %} {% endif %} diff --git a/src/registrar/templates/includes/organization_address.html b/src/registrar/templates/includes/organization_address.html index 31f1eb6fc..d6126d681 100644 --- a/src/registrar/templates/includes/organization_address.html +++ b/src/registrar/templates/includes/organization_address.html @@ -1,4 +1,4 @@ -
+
{% if organization.federal_agency %} {{ organization.federal_agency }}
{% endif %} diff --git a/src/registrar/tests/test_admin_request.py b/src/registrar/tests/test_admin_request.py index 55ffc18ed..39a2c14d1 100644 --- a/src/registrar/tests/test_admin_request.py +++ b/src/registrar/tests/test_admin_request.py @@ -575,7 +575,6 @@ class TestDomainRequestAdmin(MockEppLib): response = self.client.get("/admin/registrar/domainrequest/?generic_org_type__exact=federal") # There are 2 template references to Federal (4) and two in the results data # of the request - print(response.content.decode("utf-8")) self.assertContains(response, "Federal", count=52) # This may be a bit more robust self.assertContains(response, 'federal', count=1) @@ -1700,8 +1699,6 @@ class TestDomainRequestAdmin(MockEppLib): request.user = self.staffuser readonly_fields = self.admin.get_readonly_fields(request) - print(" read only fields") - print(readonly_fields) self.maxDiff = None expected_fields = [ "other_contacts", @@ -2170,7 +2167,6 @@ class TestDomainRequestAdmin(MockEppLib): response_content = "".join(response.content.decode().split()) # Check if response contains expected_html - print(response.content.decode("utf-8")) self.assertIn(expected_html, response_content) @less_console_noise_decorator