mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 23:28:24 -04:00
Merge pull request #929 from alphagov/fix-trial-mode-500
Fix 500 on trial mode page
This commit is contained in:
@@ -31,7 +31,7 @@ def cookies():
|
|||||||
|
|
||||||
@main.route('/trial-mode')
|
@main.route('/trial-mode')
|
||||||
def trial_mode():
|
def trial_mode():
|
||||||
return render_template('views/trial-mode.html', hours=hours)
|
return render_template('views/trial-mode.html')
|
||||||
|
|
||||||
|
|
||||||
@main.route('/pricing')
|
@main.route('/pricing')
|
||||||
|
|||||||
@@ -15,3 +15,12 @@ def test_logged_in_user_redirects_to_choose_service(app_,
|
|||||||
|
|
||||||
response = client.get(url_for('main.sign_in', follow_redirects=True))
|
response = client.get(url_for('main.sign_in', follow_redirects=True))
|
||||||
assert response.location == url_for('main.choose_service', _external=True)
|
assert response.location == url_for('main.choose_service', _external=True)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize('view', [
|
||||||
|
'cookies', 'trial_mode', 'pricing', 'terms', 'delivery_and_failure', 'documentation'
|
||||||
|
])
|
||||||
|
def test_static_pages(app_, view):
|
||||||
|
with app_.test_request_context(), app_.test_client() as client:
|
||||||
|
response = client.get(url_for('main.{}'.format(view)))
|
||||||
|
assert response.status_code == 200
|
||||||
|
|||||||
Reference in New Issue
Block a user