From: Alfredo Deza Date: Fri, 19 Jun 2015 19:56:57 +0000 (-0400) Subject: set an env variable that tells us we are testing X-Git-Tag: v1.2.3~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F31%2Fhead;p=radosgw-agent.git set an env variable that tells us we are testing Signed-off-by: Alfredo Deza --- diff --git a/radosgw_agent/tests/conftest.py b/radosgw_agent/tests/conftest.py index 8e9caf6..f0ef3b5 100644 --- a/radosgw_agent/tests/conftest.py +++ b/radosgw_agent/tests/conftest.py @@ -1,8 +1,13 @@ import logging import sys +import os -# this console logging configuration is basically just to be able to see output in -# tests, and this file gets executed by py.test when it runs, so we get that for free. +# set an environ variable that tells us that we are really testing +os.environ['PYTEST'] = '1' + +# this console logging configuration is basically just to be able to see output +# in tests, and this file gets executed by py.test when it runs, so we get that +# for free. # Console Logger sh = logging.StreamHandler()