fixed tests

This commit is contained in:
David Kennedy 2025-01-02 19:48:45 -05:00
parent c5325a6c56
commit c70a16dc6a
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 1 additions and 1 deletions

View file

@ -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]

View file

@ -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 = (