Get standalone server mode working for all tests.
This commit is contained in:
parent
cb28eeefbb
commit
81836b6981
78 changed files with 957 additions and 783 deletions
|
|
@ -1,3 +1,5 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
from werkzeug.exceptions import HTTPException
|
||||
from jinja2 import DictLoader, Environment
|
||||
from six import text_type
|
||||
|
|
@ -47,6 +49,10 @@ class RESTError(HTTPException):
|
|||
error_type=error_type, message=message, **kwargs)
|
||||
|
||||
|
||||
class DryRunClientError(RESTError):
|
||||
code = 400
|
||||
|
||||
|
||||
class JsonRESTError(RESTError):
|
||||
def __init__(self, error_type, message, template='error_json', **kwargs):
|
||||
super(JsonRESTError, self).__init__(error_type, message, template, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue