Test for HTML response in the schema

Because we test for the other properties in the schema.

Also sets `additionalProperties` to `False` so we’re forced to update
the schemas if we make similar changes in the future. This means
removing `created_by` from the test data because it’s not returned by
the real response.
This commit is contained in:
Chris Hill-Scott
2019-02-08 11:33:36 +00:00
parent f185dbecbe
commit aab36157a5
2 changed files with 7 additions and 6 deletions

View File

@@ -71,17 +71,16 @@ valid_json_post_response = {
'id': str(uuid.uuid4()),
'type': 'email',
'version': 1,
'created_by': 'someone@test.com',
'body': 'some body'
'body': 'some body',
}
valid_json_post_response_with_optionals = {
'id': str(uuid.uuid4()),
'type': 'email',
'version': 1,
'created_by': 'someone@test.com',
'body': "some body",
'subject': 'some subject'
'subject': 'some subject',
'html': '<p>some body</p>',
}