From c1dd6a387abc8b8313aa1243ac21c5701bece607 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 19 Jun 2015 15:56:57 -0400 Subject: [PATCH] set an env variable that tells us we are testing Signed-off-by: Alfredo Deza --- radosgw_agent/tests/conftest.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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() -- 2.47.3