diff --git a/src/registrar/tests/test_views_domain.py b/src/registrar/tests/test_views_domain.py index 45c259001..31ca776e2 100644 --- a/src/registrar/tests/test_views_domain.py +++ b/src/registrar/tests/test_views_domain.py @@ -1534,7 +1534,7 @@ def test_has_suborganization_field_on_overview_with_flag(self): # Create a portfolio portfolio = Portfolio.objects.create(creator=self.user, organization_name="Ice Cream") - _suborg = Suborganization.objects.create(portfolio=portfolio, name="Vanilla") + suborg = Suborganization.objects.create(portfolio=portfolio, name="Vanilla") # Add the portfolio to the domain_information object self.domain_information.portfolio = portfolio @@ -1565,7 +1565,7 @@ def test_has_suborganization_field_on_overview_with_flag(self): # Cleanup self.domain_information.delete() - _suborg.delete() + suborg.delete() portfolio.delete()