def test_compile_with_overrides(self): actions = [ ('directory', self.env), ('override', 'C=False'), ] assert compile(actions, {})['C'] == 'False'
def test_compile_with_script_with_pipes(self): actions = [ ('script', 'echo "%s" | xargs cat' % self.env_files[0]), ] assert compile(actions, {})['A'] == 'True'
def test_compile_with_script(self): actions = [ ('script', 'cat %s' % self.env_files[0]), ] assert compile(actions, {})['A'] == 'True'
def test_compile_with_empty_alias(self): actions = [('alias', self.envs_path('empty.yml'))] assert compile(actions, {}) == {}
def test_compile_with_files(self): actions = [('file', fname) for fname in self.env_files] assert compile(actions, {}) == self.foo_env
def test_compile_with_alias(self): actions = [('alias', os.path.join(HERE, 'envs', 'alias.yml'))] assert compile(actions, {}) == self.foo_env
def test_compile_with_directory(self): actions = [('directory', self.env)] assert compile(actions, {}) == self.foo_env
def test_compile_with_empty_alias(self): actions = [ ('alias', self.envs_path('empty.yml')) ] assert compile(actions, {}) == {}
def test_compile_with_files(self): actions = [ ('file', fname) for fname in self.env_files ] assert compile(actions, {}) == self.foo_env