toil.test.src.importExportFileTest¶
Classes¶
Class represents a unit of work in toil. |
Functions¶
|
Module Contents¶
- toil.test.src.importExportFileTest.create_file(tmp_path, content, executable=False)¶
- Parameters:
tmp_path (pathlib.Path)
content (str)
executable (bool)
- Return type:
- 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.
- 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:
fileStore – Used to create local and globally sharable temporary files and to send log messages to the leader process.
file_store (toil.fileStores.abstractFileStore.AbstractFileStore)
- Returns:
The return value of the function can be passed to other jobs by means of
toil.job.Job.rv()
.- Return type: