mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 18:25:58 +02:00
Fix merge conflicts
This commit is contained in:
parent
e827314f78
commit
1e0a46f5fc
3 changed files with 11 additions and 11 deletions
|
@ -8,7 +8,9 @@
|
||||||
{% include "includes/domain_sidenav_item.html" with item_text="Domain overview" %}
|
{% include "includes/domain_sidenav_item.html" with item_text="Domain overview" %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
{% if is_org_user %}
|
{% if is_editable %}
|
||||||
|
|
||||||
|
{% if portfolio %}
|
||||||
{% comment %} TODO - uncomment in #2352
|
{% comment %} TODO - uncomment in #2352
|
||||||
{% with url_name="domain-suborganization" %}
|
{% with url_name="domain-suborganization" %}
|
||||||
{% include "includes/domain_sidenav_item.html" with item_text="Suborganization" %}
|
{% include "includes/domain_sidenav_item.html" with item_text="Suborganization" %}
|
||||||
|
@ -23,7 +25,6 @@
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if is_editable %}
|
|
||||||
<li class="usa-sidenav__item">
|
<li class="usa-sidenav__item">
|
||||||
{% url 'domain-dns' pk=domain.id as url %}
|
{% url 'domain-dns' pk=domain.id as url %}
|
||||||
<a href="{{ url }}" {% if request.path|startswith:url %}class="usa-current"{% endif %}>
|
<a href="{{ url }}" {% if request.path|startswith:url %}class="usa-current"{% endif %}>
|
||||||
|
|
|
@ -73,13 +73,6 @@ class TestWithUser(MockEppLib):
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
super().tearDownClass()
|
super().tearDownClass()
|
||||||
User.objects.all().delete()
|
User.objects.all().delete()
|
||||||
# For some reason, if this is done on the test directly,
|
|
||||||
# we get a django.db.models.deletion.ProtectedError on "User".
|
|
||||||
# In either event, it doesn't hurt to have these here given their
|
|
||||||
# relationship.
|
|
||||||
Suborganization.objects.all().delete()
|
|
||||||
Portfolio.objects.all().delete()
|
|
||||||
SeniorOfficial.objects.all().delete()
|
|
||||||
|
|
||||||
|
|
||||||
class TestEnvironmentVariablesEffects(TestCase):
|
class TestEnvironmentVariablesEffects(TestCase):
|
||||||
|
|
|
@ -6,7 +6,6 @@ from django.urls import reverse
|
||||||
from django.contrib.auth import get_user_model
|
from django.contrib.auth import get_user_model
|
||||||
from waffle.testutils import override_flag
|
from waffle.testutils import override_flag
|
||||||
from api.tests.common import less_console_noise_decorator
|
from api.tests.common import less_console_noise_decorator
|
||||||
from registrar.models.portfolio import Portfolio
|
|
||||||
from .common import MockEppLib, MockSESClient, create_user # type: ignore
|
from .common import MockEppLib, MockSESClient, create_user # type: ignore
|
||||||
from django_webtest import WebTest # type: ignore
|
from django_webtest import WebTest # type: ignore
|
||||||
import boto3_mocking # type: ignore
|
import boto3_mocking # type: ignore
|
||||||
|
@ -142,6 +141,7 @@ class TestWithDomainPermissions(TestWithUser):
|
||||||
Host.objects.all().delete()
|
Host.objects.all().delete()
|
||||||
Domain.objects.all().delete()
|
Domain.objects.all().delete()
|
||||||
UserDomainRole.objects.all().delete()
|
UserDomainRole.objects.all().delete()
|
||||||
|
Suborganization.objects.all().delete()
|
||||||
Portfolio.objects.all().delete()
|
Portfolio.objects.all().delete()
|
||||||
except ValueError: # pass if already deleted
|
except ValueError: # pass if already deleted
|
||||||
pass
|
pass
|
||||||
|
@ -1151,7 +1151,7 @@ class TestDomainSeniorOfficial(TestDomainOverview):
|
||||||
|
|
||||||
# Add a portfolio to the current domain
|
# Add a portfolio to the current domain
|
||||||
portfolio = Portfolio.objects.create(creator=self.user, organization_name="Ice Cream")
|
portfolio = Portfolio.objects.create(creator=self.user, organization_name="Ice Cream")
|
||||||
Suborganization.objects.create(portfolio=portfolio, name="Vanilla")
|
_suborg = Suborganization.objects.create(portfolio=portfolio, name="Vanilla")
|
||||||
|
|
||||||
# Add the portfolio to the domain_information object
|
# Add the portfolio to the domain_information object
|
||||||
self.domain_information.portfolio = portfolio
|
self.domain_information.portfolio = portfolio
|
||||||
|
@ -1183,6 +1183,12 @@ class TestDomainSeniorOfficial(TestDomainOverview):
|
||||||
self.assertNotContains(page, "Testy")
|
self.assertNotContains(page, "Testy")
|
||||||
self.assertContains(page, "Bob")
|
self.assertContains(page, "Bob")
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
self.domain_information.delete()
|
||||||
|
_suborg.delete()
|
||||||
|
portfolio.delete()
|
||||||
|
senior_official.delete()
|
||||||
|
|
||||||
@less_console_noise_decorator
|
@less_console_noise_decorator
|
||||||
def test_domain_edit_senior_official_in_place(self):
|
def test_domain_edit_senior_official_in_place(self):
|
||||||
"""When editing a senior official for domain information and SO is not
|
"""When editing a senior official for domain information and SO is not
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue