Fix auth unit test, cleanup

This commit is contained in:
Rachid Mrad 2024-06-20 13:16:24 -04:00
parent 1fb31c0cd0
commit f7267a4e63
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -24,6 +24,7 @@ SAMPLE_KWARGS = {
"object_id": "3", "object_id": "3",
"domain": "whitehouse.gov", "domain": "whitehouse.gov",
"user_pk": "1", "user_pk": "1",
"portfolio_id": "1",
} }
# Our test suite will ignore some namespaces. # Our test suite will ignore some namespaces.

View file

@ -14,6 +14,4 @@ def index(request):
# This controls the creation of a new domain request in the wizard # This controls the creation of a new domain request in the wizard
request.session["new_request"] = True request.session["new_request"] = True
print("homepage view")
return render(request, "home.html", context) return render(request, "home.html", context)

View file

@ -1,8 +1,9 @@
from django.shortcuts import get_object_or_404, render from django.shortcuts import get_object_or_404, render
from registrar.models.portfolio import Portfolio from registrar.models.portfolio import Portfolio
from waffle.decorators import flag_is_active from waffle.decorators import flag_is_active
from django.contrib.auth.decorators import login_required
@login_required
def organization_domains(request, portfolio_id): def organization_domains(request, portfolio_id):
context = {} context = {}
@ -17,7 +18,7 @@ def organization_domains(request, portfolio_id):
return render(request, "organization_domains.html", context) return render(request, "organization_domains.html", context)
@login_required
def organization_domain_requests(request, portfolio_id): def organization_domain_requests(request, portfolio_id):
context = {} context = {}