mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 10:59:21 +02:00
Fix auth unit test, cleanup
This commit is contained in:
parent
1fb31c0cd0
commit
f7267a4e63
3 changed files with 4 additions and 4 deletions
|
@ -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.
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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 = {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue