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) + ]