def test_redirects_to_home_page(self, response): redirect_url = url_for('frontpage.index', _external=False) assert_redirects(response, redirect_url)
def test_redirects_home(self, client, login, user): response = client.get(url_for('auth.logout')) redirect_url = url_for('frontpage.index', _external=False) assert_redirects(response, redirect_url)