From 5c590c4dc4e9f9f6aa589e34963b1c1fc76b9b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 25 Apr 2016 11:44:08 +0200 Subject: [PATCH] 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. --- tests/common_test_class.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/common_test_class.py b/tests/common_test_class.py index c85633ef..ab375ad0 100644 --- a/tests/common_test_class.py +++ b/tests/common_test_class.py @@ -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)