Esempio n. 1
0
 def missing_default_collection_doesnt_say_None(self):
     with cd('/'):
         _output_eq(
             '-l',
             stderr="Can't find any collection named 'tasks'!\n",
             code=1
         )
Esempio n. 2
0
        def tasks_dedupe_honors_configuration(self):
            # Kinda-sorta duplicates some tests in executor.py, but eh.
            with cd('configs'):
                # Runtime conf file
                _output_eq(
                    '-c integration -f no-dedupe.yaml biz',
                    """
foo
foo
bar
biz
post1
post2
post2
""".lstrip())
                # Flag beats runtime
                _output_eq(
                    '-c integration -f dedupe.yaml --no-dedupe biz',
                    """
foo
foo
bar
biz
post1
post2
post2
""".lstrip())
Esempio n. 3
0
        def tasks_dedupe_honors_configuration(self):
            # Kinda-sorta duplicates some tests in executor.py, but eh.
            with cd('configs'):
                # Runtime conf file
                _output_eq('-c integration -f no-dedupe.yaml biz', """foo
foo
bar
biz
post1
post2
post2
""")
                # Flag beats runtime
                _output_eq('-c integration -f dedupe.yaml --no-dedupe biz',
                           """foo
foo
bar
biz
post1
post2
post2
""")
Esempio n. 4
0
 def runtime_config_file_honored(self):
     with cd('configs'):
         _dispatch("inv -c runtime -f yaml/invoke.yaml mytask")
Esempio n. 5
0
 def per_project_config_files_load_with_explicit_ns(self):
     # Re: #234
     with cd(os.path.join('configs', 'yaml')):
         _dispatch("inv -c explicit mytask")
Esempio n. 6
0
 def per_project_config_files_are_loaded(self):
     with cd(os.path.join('configs', 'yaml')):
         _dispatch("inv mytask")
Esempio n. 7
0
 def missing_default_collection_doesnt_say_None(self):
     with cd('/'):
         _output_eq('-l',
                    stderr="Can't find any collection named 'tasks'!\n",
                    code=1)
Esempio n. 8
0
 def runtime_config_file_honored(self):
     with cd('configs'):
         _dispatch("inv -c runtime -f yaml/invoke.yaml mytask")
Esempio n. 9
0
 def per_project_config_files_are_loaded(self):
     with cd(os.path.join('configs', 'yaml')):
         _dispatch("inv mytask")
Esempio n. 10
0
 def per_project_config_files_load_with_explicit_ns(self):
     # Re: #234
     with cd(os.path.join('configs', 'yaml')):
         _dispatch("inv -c explicit mytask")