From ce21f7a9b9e1611525dce08fb653e558c6746c1d Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Tue, 5 Feb 2019 22:55:47 -0500 Subject: [PATCH] Remove no longer relevant tests --- tests/routes/test_home.py | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/tests/routes/test_home.py b/tests/routes/test_home.py index 01cd934c..25c7fc4d 100644 --- a/tests/routes/test_home.py +++ b/tests/routes/test_home.py @@ -4,30 +4,6 @@ from tests.factories import UserFactory, PortfolioFactory, RequestFactory from atst.domain.portfolios import Portfolios -def test_user_with_portfolios_has_portfolios_nav(client, user_session): - portfolio = PortfolioFactory.create() - user_session(portfolio.owner) - response = client.get("/home", follow_redirects=True) - assert b'href="/portfolios"' in response.data - - -@pytest.mark.skip(reason="this may no longer be accurate") -def test_user_without_portfolios_has_no_portfolios_nav(client, user_session): - user = UserFactory.create() - user_session(user) - response = client.get("/home", follow_redirects=True) - assert b'href="/portfolios"' not in response.data - - -@pytest.mark.skip(reason="this may no longer be accurate") -def test_request_owner_with_no_portfolios_redirected_to_requests(client, user_session): - request = RequestFactory.create() - user_session(request.creator) - response = client.get("/home", follow_redirects=False) - - assert "/requests" in response.location - - def test_request_owner_with_one_portfolio_redirected_to_reports(client, user_session): request = RequestFactory.create() portfolio = Portfolios.create_from_request(request) @@ -51,16 +27,6 @@ def test_request_owner_with_more_than_one_portfolio_redirected_to_portfolios( assert "/portfolios" in response.location -@pytest.mark.skip(reason="this may no longer be accurate") -def test_non_owner_user_with_no_portfolios_redirected_to_requests(client, user_session): - user = UserFactory.create() - - user_session(user) - response = client.get("/home", follow_redirects=False) - - assert "/requests" in response.location - - def test_non_owner_user_with_one_portfolio_redirected_to_portfolio_applications( client, user_session ):