toil.test.src.importExportFileTest

Classes

TestImportExportFile

RestartingJob

Class represents a unit of work in toil.

Functions

create_file(tmp_path, content[, executable])

Module Contents

toil.test.src.importExportFileTest.create_file(tmp_path, content, executable=False)
Parameters:
Return type:

pathlib.Path

class toil.test.src.importExportFileTest.TestImportExportFile
message_portion_1 = 'What do you get when you cross a seal and a polar bear?'
message_portion_2 = '  A polar bear.'
test_import_export_restart_true(tmp_path)
Parameters:

tmp_path (pathlib.Path)

Return type:

None

test_import_export_restart_false(tmp_path)
Parameters:

tmp_path (pathlib.Path)

Return type:

None

test_basic_import_export(tmp_path, subtests)

Ensures that uploaded files preserve their file permissions when they are downloaded again. This function checks that an imported executable file maintains its executability after being exported.

Parameters:
  • tmp_path (pathlib.Path)

  • subtests (pytest_subtests.SubTests)

Return type:

None

class toil.test.src.importExportFileTest.RestartingJob(msg_portion_file_id, trigger_file_id, message_portion_2)

Bases: toil.job.Job

Class represents a unit of work in toil.

Parameters:
  • msg_portion_file_id (str)

  • trigger_file_id (str)

  • message_portion_2 (str)

msg_portion_file_id
trigger_file_id
message_portion_2
run(file_store)

Override this function to perform work and dynamically create successor jobs.

Parameters:
Returns:

The return value of the function can be passed to other jobs by means of toil.job.Job.rv().

Return type:

str