예제 #1
0
    def test_compile_with_overrides(self):
        actions = [
            ('directory', self.env),
            ('override', 'C=False'),
        ]

        assert compile(actions, {})['C'] == 'False'
예제 #2
0
파일: test_env.py 프로젝트: ionrock/withenv
    def test_compile_with_overrides(self):
        actions = [
            ('directory', self.env),
            ('override', 'C=False'),
        ]

        assert compile(actions, {})['C'] == 'False'
예제 #3
0
    def test_compile_with_script_with_pipes(self):
        actions = [
            ('script', 'echo "%s" | xargs cat' % self.env_files[0]),
        ]

        assert compile(actions, {})['A'] == 'True'
예제 #4
0
    def test_compile_with_script(self):
        actions = [
            ('script', 'cat %s' % self.env_files[0]),
        ]

        assert compile(actions, {})['A'] == 'True'
예제 #5
0
 def test_compile_with_empty_alias(self):
     actions = [('alias', self.envs_path('empty.yml'))]
     assert compile(actions, {}) == {}
예제 #6
0
 def test_compile_with_files(self):
     actions = [('file', fname) for fname in self.env_files]
     assert compile(actions, {}) == self.foo_env
예제 #7
0
 def test_compile_with_alias(self):
     actions = [('alias', os.path.join(HERE, 'envs', 'alias.yml'))]
     assert compile(actions, {}) == self.foo_env
예제 #8
0
 def test_compile_with_directory(self):
     actions = [('directory', self.env)]
     assert compile(actions, {}) == self.foo_env
예제 #9
0
파일: test_env.py 프로젝트: ionrock/withenv
    def test_compile_with_script_with_pipes(self):
        actions = [
            ('script', 'echo "%s" | xargs cat' % self.env_files[0]),
        ]

        assert compile(actions, {})['A'] == 'True'
예제 #10
0
파일: test_env.py 프로젝트: ionrock/withenv
    def test_compile_with_script(self):
        actions = [
            ('script', 'cat %s' % self.env_files[0]),
        ]

        assert compile(actions, {})['A'] == 'True'
예제 #11
0
파일: test_env.py 프로젝트: ionrock/withenv
 def test_compile_with_empty_alias(self):
     actions = [
         ('alias', self.envs_path('empty.yml'))
     ]
     assert compile(actions, {}) == {}
예제 #12
0
파일: test_env.py 프로젝트: ionrock/withenv
 def test_compile_with_files(self):
     actions = [
         ('file', fname) for fname in self.env_files
     ]
     assert compile(actions, {}) == self.foo_env
예제 #13
0
파일: test_env.py 프로젝트: ionrock/withenv
 def test_compile_with_alias(self):
     actions = [('alias', os.path.join(HERE, 'envs', 'alias.yml'))]
     assert compile(actions, {}) == self.foo_env
예제 #14
0
파일: test_env.py 프로젝트: ionrock/withenv
 def test_compile_with_directory(self):
     actions = [('directory', self.env)]
     assert compile(actions, {}) == self.foo_env