Added some more tests.

Removed the validation in the schema - it was adding complexity, let the unique constraint on the db throw the exception. This should only ever happen on a race condition which seems unlikely (two people changing a service to the same name at the same time)
Do no set debug=true to the test config. If debug=true it changes the behaviour of the error handlers, throwing the exception rather than returning a 500.
This commit is contained in:
Rebecca Law
2016-04-01 13:42:11 +01:00
parent 8df4919029
commit 8493e29acc
3 changed files with 71 additions and 27 deletions

View File

@@ -83,8 +83,8 @@ class Development(Config):
DEBUG = True
class Test(Development):
DEBUG = True
class Test(Config):
pass
configs = {
'live': 'config_live.Live',