diff --git a/inventory_provider/db.py b/inventory_provider/db.py index 694e0525b859342f36a9262520d0af124b634ba8..927dd98dc65241ef255ceca543ce92e78f4373e3 100644 --- a/inventory_provider/db.py +++ b/inventory_provider/db.py @@ -3,7 +3,7 @@ import redis from flask import current_app, g -def get_redis(): +def get_redis(): # pragma: no cover if 'redis_db' not in g: config = current_app.config['INVENTORY_PROVIDER_CONFIG'] g.redis_db = redis.Redis(