Refactor tests to use admin_request

This commit is contained in:
Ken Tsang
2017-07-10 13:45:48 +01:00
parent 3b1f229384
commit af9091f207
3 changed files with 104 additions and 52 deletions

View File

@@ -1,11 +1,23 @@
post_organisation_schema = {
post_create_organisation_schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST schema for getting organisation",
"type": "object",
"properties": {
"colour": {"type": ["string", "null"], "format": "string"},
"name": {"type": ["string", "null"], "minimum": 1},
"logo": {"type": ["string", "null"], "minimum": 1}
"colour": {"type": ["string", "null"]},
"name": {"type": ["string", "null"]},
"logo": {"type": ["string", "null"]}
},
"required": ["logo"]
}
post_update_organisation_schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST schema for getting organisation",
"type": "object",
"properties": {
"colour": {"type": ["string", "null"]},
"name": {"type": ["string", "null"]},
"logo": {"type": ["string", "null"]}
},
"required": []
}