Support running inside CI
This commit is contained in:
parent
535aa797b5
commit
3aa8503803
@ -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)
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user