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:
Sybren A. Stüvel 2016-04-25 11:44:08 +02:00
parent 9083a31812
commit 5c590c4dc4

View File

@ -51,6 +51,9 @@ class AbstractPillarTest(TestMinimal):
logging.getLogger('werkzeug').setLevel(logging.DEBUG)
logging.getLogger('eve').setLevel(logging.DEBUG)
from eve.utils import config
config.DEBUG = True
self.app = app
self.client = app.test_client()
assert isinstance(self.client, FlaskClient)