Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-kennedy-ecs committed Nov 8, 2024
1 parent 4a07c9a commit f6062da
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/registrar/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,12 @@ def setUp(self):
first_name="John", last_name="Doe", title="Director", federal_agency=self.agency
)
self.portfolio = Portfolio.objects.create(
creator=self.user, federal_agency=self.agency, senior_official=self.senior_official,
organization_name="Org name", organization_type=Portfolio.OrganizationChoices.FEDERAL,
)
creator=self.user,
federal_agency=self.agency,
senior_official=self.senior_official,
organization_name="Org name",
organization_type=Portfolio.OrganizationChoices.FEDERAL,
)

self.api_url = reverse("get-portfolio-json")

Expand Down Expand Up @@ -120,7 +123,7 @@ def test_get_portfolio_authenticated_superuser(self):
self.assertEqual(portfolio["senior_official"]["phone"], None)
self.assertEqual(portfolio["senior_official"]["email"], None)
self.assertEqual(portfolio["federal_type"], "-")

@less_console_noise_decorator
def test_get_portfolio_json_authenticated_analyst(self):
"""Test that an analyst user can fetch the portfolio's information."""
Expand Down

0 comments on commit f6062da

Please sign in to comment.