From 3aa850380344bf84c6dde53c31d2971d3ccfea48 Mon Sep 17 00:00:00 2001 From: jpic Date: Fri, 14 Feb 2020 20:25:11 +0100 Subject: [PATCH] Support running inside CI --- tests/test_image.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_image.py b/tests/test_image.py index 0fc0295..4bf27b4 100644 --- a/tests/test_image.py +++ b/tests/test_image.py @@ -26,6 +26,8 @@ def test_args(arg, expected): def test_args_env(): import os - os.environ['CIRCLE_TAG'] = 'foo' + os.environ.setdefault('CIRCLE_TAG', 'foo') im = Image('re/po:x,y') - assert im.tags == ['x', 'y', 'foo'] + assert im.tags == ['x', 'y'] + [ + os.environ[e] for e in Image.ENV_TAGS if os.getenv(e) + ]