mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 10:16:13 +02:00
minor fixes
This commit is contained in:
parent
f6bf437695
commit
a32ec351ca
3 changed files with 2 additions and 6 deletions
|
@ -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 %}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<address>
|
||||
<address>
|
||||
{% if organization.federal_agency %}
|
||||
{{ organization.federal_agency }}<br />
|
||||
{% endif %}
|
||||
|
|
|
@ -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, '<td class="field-converted_generic_org_type">federal</td>', 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue