Support running inside CI

This commit is contained in:
jpic 2020-02-14 20:25:11 +01:00
parent 535aa797b5
commit 3aa8503803

View File

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