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

@@ -66,9 +66,11 @@ post_template_preview_response = {
"version": {"type": "integer"},
"body": {"type": "string"},
"subject": {"type": ["string", "null"]},
"postage": {"type": "string"}
"postage": {"type": "string"},
"html": {"type": ["string", "null"]},
},
"required": ["id", "type", "version", "body"]
"required": ["id", "type", "version", "body"],
"additionalProperties": False,
}