Add logging for response bodies (#11)

This commit is contained in:
f4lco
2019-12-28 17:34:58 +01:00
parent ad5b79ec64
commit 342157e465
2 changed files with 13 additions and 0 deletions
+5
View File
@@ -1,5 +1,6 @@
# -*- encoding: utf-8 -*-
import logging
import os
import pytest
@@ -12,6 +13,10 @@ from stw_potsdam.canteen_api import MenuParams
ENV_ENABLED = 'ENABLE_API_QUERY'
# Because log messages are automatically part of the Pytest report, below
# explicitly avoids adding log handlers via logging#basicConfig, for example.
logging.getLogger().setLevel(logging.DEBUG)
CANTEENS = read_canteen_config()