Added some tests around creating and updated services

- ensure research mode is respected on creation and update
- ensure rest client gives an error for bad research mode update
This commit is contained in:
Martyn Inglis
2016-05-31 12:49:06 +01:00
parent 9aa727e0cf
commit 9617f0748b
3 changed files with 63 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ def test_create_service(sample_user):
assert Service.query.count() == 1
assert Service.query.first().name == "service_name"
assert Service.query.first().id == service.id
assert not Service.query.first().research_mode
assert sample_user in Service.query.first().users