def _build_test_case_file(): tcf = TestCaseFile() tcf.source = 'tmp.txt' tcf.directory = '/tmp/' _add_settings_table(tcf) _add_variable_table(tcf) _add_keyword_table(tcf) return tcf
def _build_test_case_file(): tcf = TestCaseFile() tcf.source = 'tmp.txt' tcf.directory = '/tmp/' _add_settings_table(tcf) _add_variable_table(tcf) _add_keyword_table(tcf) return tcf
def create(data): tcf = TestCaseFile() tcf.directory = '/path/to' pop = FromFilePopulator(tcf) pop.start_table(['Test cases']) for row in [ [cell for cell in line.split(' ')] for line in data]: pop.add(row) pop.eof() return tcf
def create(data): tcf = TestCaseFile() tcf.directory = '/path/to' pop = FromFilePopulator(tcf) pop.start_table(['Test cases']) for row in [[cell for cell in line.split(' ')] for line in data]: pop.add(row) pop.eof() return tcf