job.test.messages package¶
Submodules¶
job.test.messages.test_blocked_jobs module¶
job.test.messages.test_cancel_jobs module¶
job.test.messages.test_cancel_jobs_bulk module¶
job.test.messages.test_completed_jobs module¶
job.test.messages.test_create_jobs module¶
-
class
job.test.messages.test_create_jobs.
TestCreateJobs
(methodName='runTest')¶ Bases:
django.test.testcases.TransactionTestCase
-
setUp
()¶
-
test_execute_input_data
()¶ Tests calling CreateJobs.execute() with input data
-
test_execute_input_data_invalid
()¶ Tests calling CreateJobs.execute() when the input data is invalid
-
test_execute_recipe
()¶ Tests calling CreateJobs.execute() successfully for jobs within a recipe
-
test_execute_recipe_superseded
()¶ Tests calling CreateJobs.execute() successfully for jobs within a recipe that supersedes another recipe
-
test_json_input_data
()¶ Tests converting a CreateJobs message to and from JSON when creating a job from input data
-
test_json_recipe
()¶ Tests converting a CreateJobs message to and from JSON when creating jobs for a recipe
-
test_json_recipe_superseded
()¶ Tests converting a CreateJobs message to and from JSON when creating jobs for a recipe that supersedes another recipe
-
job.test.messages.test_failed_jobs module¶
job.test.messages.test_job_exe_end module¶
-
class
job.test.messages.test_job_exe_end.
TestCreateJobExecutionEnd
(methodName='runTest')¶ Bases:
django.test.testcases.TransactionTestCase
-
fixtures
= [u'basic_errors.json', u'basic_job_errors.json']¶
-
setUp
()¶
-
test_execute
()¶ Tests calling CreateJobExecutionEnd.execute() successfully
-
test_json
()¶ Tests converting a CreateJobExecutionEnd message to and from JSON
-
job.test.messages.test_pending_jobs module¶
job.test.messages.test_process_job_input module¶
-
class
job.test.messages.test_process_job_input.
TestProcessJobInput
(methodName='runTest')¶ Bases:
django.test.testcases.TransactionTestCase
-
setUp
()¶
-
test_execute_with_data
()¶ Tests calling ProcessJobInput.execute() successfully when the job already has data populated
-
test_execute_with_recipe
()¶ Tests calling ProcessJobInput.execute() successfully when a job has to get its data from its recipe
-
test_execute_with_recipe_and_optional_data
()¶ Tests calling ProcessJobInput.execute() successfully when a job has to get its data from its recipe
-
test_execute_with_recipe_missing_output
()¶ Tests calling ProcessJobInput.execute() when a job has to get its data from its recipe but the previous job didn’t provide it’s output
-
test_json
()¶ Tests converting a ProcessJobInput message to and from JSON
-
job.test.messages.test_publish_job module¶
job.test.messages.test_purge_jobs module¶
-
class
job.test.messages.test_purge_jobs.
TestPurgeJobs
(methodName='runTest')¶ Bases:
django.test.testcases.TransactionTestCase
-
setUp
()¶
-
test_execute_check_results
()¶ Tests calling PurgeJobs.execute() successfully and ensuring that results are accurate
-
test_execute_force_stop_purge
()¶ Tests calling PurgeJobs.execute() successfully with force_stop_purge set (no action should be completed)
-
test_execute_with_input_file
()¶ Tests calling PurgeJobs.execute() successfully
-
test_execute_with_recipe
()¶ Tests calling PurgeJobs.execute() successfully with job as part of recipe
-
test_json
()¶ Tests coverting a PurgeJobs message to and from JSON
-
job.test.messages.test_running_jobs module¶
job.test.messages.test_spawn_delete_files_job module¶
-
class
job.test.messages.test_spawn_delete_files_job.
TestSpawnDeleteFilesJob
(methodName='runTest')¶ Bases:
django.test.testcases.TransactionTestCase
-
fixtures
= [u'delete_files_job_type.json']¶
-
setUp
()¶
-
test_execute
()¶ Tests calling SpawnDeleteFilesJob.execute successfully
-
test_execute_force_stop
()¶ Tests calling SpawnDeleteFilesJob.execute with the force stop flag set
-
test_execute_no_job
()¶ Tests calling SpawnDeleteFilesJob.execute with the id of a job that does not exist
-
test_json
()¶ Tests coverting a SpawnDeleteFilesJob message to and from JSON
-