mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-03 08:22:18 +02:00
fixed tests
This commit is contained in:
parent
c5325a6c56
commit
c70a16dc6a
2 changed files with 1 additions and 1 deletions
|
@ -550,6 +550,7 @@ class TestDomainManagers(TestDomainOverview):
|
|||
self.portfolio = Portfolio.objects.create(creator=self.user, organization_name="Ice Cream")
|
||||
# Add the portfolio to the domain_information object
|
||||
self.domain_information.portfolio = self.portfolio
|
||||
self.domain_information.save()
|
||||
# Add portfolio perms to the user object
|
||||
self.portfolio_permission, _ = UserPortfolioPermission.objects.get_or_create(
|
||||
user=self.user, portfolio=self.portfolio, roles=[UserPortfolioRoleChoices.ORGANIZATION_ADMIN]
|
||||
|
|
|
@ -1233,7 +1233,6 @@ class DomainAddUserView(DomainFormBaseView):
|
|||
# NOTE: This does not account for multiple portfolios flag being set to True
|
||||
domain_org = self.object.domain_info.portfolio
|
||||
|
||||
|
||||
# requestor can only send portfolio invitations if they are staff or if they are a member
|
||||
# of the domain's portfolio
|
||||
requestor_can_update_portfolio = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue