mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Updated schema to remove redundant 'content'
This commit is contained in:
@@ -32,7 +32,7 @@ def test_valid_post_template_returns_200(client, sample_service, tmp_type):
|
||||
|
||||
assert resp_json['id'] == str(template.id)
|
||||
assert 'v2/template/{}/preview'.format(template.id) in resp_json['uri']
|
||||
assert 'Dear {}'.format(valid_data['personalisation']['Name']) in resp_json['content']['body']
|
||||
assert 'Dear {}'.format(valid_data['personalisation']['Name']) in resp_json['body']
|
||||
|
||||
|
||||
@pytest.mark.parametrize("tmp_type", TEMPLATE_TYPES)
|
||||
|
||||
Reference in New Issue
Block a user