mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 03:30:50 +02:00
cleanup
This commit is contained in:
parent
cb3b1fd7fa
commit
17997259ef
1 changed files with 0 additions and 17 deletions
|
@ -958,23 +958,6 @@ class PortfoliosTests(TestWithUser, WebTest):
|
|||
session_id = self.app.cookies[settings.SESSION_COOKIE_NAME]
|
||||
self.app.set_cookie(settings.SESSION_COOKIE_NAME, session_id)
|
||||
|
||||
# @less_console_noise_decorator
|
||||
# def test_middleware_redirects_to_portfolio_homepage(self):
|
||||
# """Tests that a user is redirected to the portfolio homepage when organization_feature is on and
|
||||
# a portfolio belongs to the user, test for the special h1s which only exist in that version
|
||||
# of the homepage"""
|
||||
# self.app.set_user(self.user.username)
|
||||
# with override_flag("organization_feature", active=True):
|
||||
# # This will redirect the user to the portfolio page.
|
||||
# # Follow implicity checks if our redirect is working.
|
||||
# portfolio_page = self.app.get(reverse("home")).follow()
|
||||
# self._set_session_cookie()
|
||||
|
||||
# # Assert that we're on the right page
|
||||
# self.assertContains(portfolio_page, self.portfolio.organization_name)
|
||||
|
||||
# self.assertContains(portfolio_page, '<h1 id="domains-header">Domains</h1>')
|
||||
|
||||
@less_console_noise_decorator
|
||||
def test_no_redirect_when_org_flag_false(self):
|
||||
"""No redirect so no follow,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue