Test fix in CI env
This commit is contained in:
parent
56ce02c234
commit
c8c281ebcf
@ -26,8 +26,7 @@ def test_args(arg, expected):
|
|||||||
assert getattr(im, k) == v
|
assert getattr(im, k) == v
|
||||||
|
|
||||||
def test_args_env():
|
def test_args_env():
|
||||||
os.environ.setdefault('CIRCLE_TAG', 'foo')
|
os.environ['IMAGE_TEST_ARGS_ENV'] = 'foo'
|
||||||
|
Image.ENV_TAGS = ['IMAGE_TEST_ARGS_ENV']
|
||||||
im = Image('re/po:x,y')
|
im = Image('re/po:x,y')
|
||||||
assert im.tags == ['x', 'y'] + [
|
assert im.tags == ['x', 'y', 'foo']
|
||||||
os.environ[e] for e in Image.ENV_TAGS if os.getenv(e)
|
|
||||||
]
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user