コード例 #1
0
 def __init__(self, test):
     """Stash the test filepath"""
     config = project_structure.load_config()
     self.test_command = config["ace"]["development_test_command"]
     test = test.strip()
     if test:
         self.test_files = [self.test_filename(test)]
     else:
         self.test_files = project_structure.list_files("test", "py")
コード例 #2
0
 def __init__(self, contract):
     """Stash the contract filepath"""
     config = project_structure.load_config()
     self.contract_language = project_structure.contract_language(contract, config)
     self.contractdir = "contract"
     self.compile_command = config[self.contract_language]["compile_command"]
     contract = contract.strip()
     if contract:
         self.contract_files = [self.contract_filename(contract)]
     else:
         ext = project_structure.language_extension(self.contract_language)
         self.contract_files = project_structure.list_files(self.contractdir, ext)