mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-30 03:08:56 -04:00
- corrects target page for set_email_branding to new preview step instead of itself - removed check for helper method being called in email page test - updates expected result for test of global headers to include changes to `frame-src` - updates navigation config with brand preview page
19 lines
486 B
Python
19 lines
486 B
Python
import pytest
|
|
from flask import url_for
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
"query_args, result", [
|
|
({}, True),
|
|
({'govuk_banner': 'false'}, 'false')
|
|
]
|
|
)
|
|
def test_renders(client, mocker, query_args, result):
|
|
|
|
mocker.patch('app.main.views.index.HTMLEmailTemplate.__str__', return_value='rendered')
|
|
|
|
response = client.get(url_for('main.email_template', **query_args))
|
|
|
|
assert response.status_code == 200
|
|
assert response.get_data(as_text=True) == 'rendered'
|