Put Eve in debug mode when unittesting.
This gives us much more concrete information when a test fails. Note that this info is generally put into the HTTP response data, and not logged to any logger.
This commit is contained in:
parent
9083a31812
commit
5c590c4dc4
@ -51,6 +51,9 @@ class AbstractPillarTest(TestMinimal):
|
|||||||
logging.getLogger('werkzeug').setLevel(logging.DEBUG)
|
logging.getLogger('werkzeug').setLevel(logging.DEBUG)
|
||||||
logging.getLogger('eve').setLevel(logging.DEBUG)
|
logging.getLogger('eve').setLevel(logging.DEBUG)
|
||||||
|
|
||||||
|
from eve.utils import config
|
||||||
|
config.DEBUG = True
|
||||||
|
|
||||||
self.app = app
|
self.app = app
|
||||||
self.client = app.test_client()
|
self.client = app.test_client()
|
||||||
assert isinstance(self.client, FlaskClient)
|
assert isinstance(self.client, FlaskClient)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user