def missing_default_collection_doesnt_say_None(self): with cd('/'): _output_eq( '-l', stderr="Can't find any collection named 'tasks'!\n", code=1 )
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())
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 """)
def runtime_config_file_honored(self): with cd('configs'): _dispatch("inv -c runtime -f yaml/invoke.yaml mytask")
def per_project_config_files_load_with_explicit_ns(self): # Re: #234 with cd(os.path.join('configs', 'yaml')): _dispatch("inv -c explicit mytask")
def per_project_config_files_are_loaded(self): with cd(os.path.join('configs', 'yaml')): _dispatch("inv mytask")
def missing_default_collection_doesnt_say_None(self): with cd('/'): _output_eq('-l', stderr="Can't find any collection named 'tasks'!\n", code=1)