job.test.configuration.data package

Submodules

job.test.configuration.data.test_job_connection module

class job.test.configuration.data.test_job_connection.TestJobConnectionValidateInputFiles(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_bad_media_type()

Tests calling JobConnection.validate_input_files() with a bad media type

test_jamming_multiple_into_single()

Tests calling JobConnection.validate_input_files() when passing multiple files into a single file

test_optional_and_required()

Tests calling JobConnection.validate_input_files() when the connection has optional data for required input

test_required_missing()

Tests calling JobConnection.validate_input_files() when a required file parameter is missing

test_successful()

Tests calling JobConnection.validate_input_files() successfully

class job.test.configuration.data.test_job_connection.TestJobConnectionValidateProperties(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_required_missing()

Tests calling JobConnection.validate_properties() when a required property is missing

test_successful()

Tests calling JobConnection.validate_properties() successfully

job.test.configuration.data.test_job_data module

class job.test.configuration.data.test_job_data.DummyDataFileStore

Bases: job.configuration.data.data_file.AbstractDataFileStore

get_workspaces(workspace_ids)
store_files(files, input_file_ids, job_exe)
class job.test.configuration.data.test_job_data.TestJobDataAddFileInput(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_successful()

Tests calling JobData.add_file_input() successfully.

class job.test.configuration.data.test_job_data.TestJobDataAddFileListInput(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_successful()

Tests calling JobData.add_file_list_input() successfully.

class job.test.configuration.data.test_job_data.TestJobDataAddOutput(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_successful(*args, **keywargs)

Tests calling JobData.add_output() successfully.

class job.test.configuration.data.test_job_data.TestJobDataAddPropertyInput(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_successful()

Tests calling JobData.add_property_input() successfully.

class job.test.configuration.data.test_job_data.TestJobDataGetInputFileIds(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_successful()

Tests calling JobData.get_input_file_ids() successfully

class job.test.configuration.data.test_job_data.TestJobDataGetPropertyValues(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_successful()

Tests calling JobData.get_property_values() successfully

class job.test.configuration.data.test_job_data.TestJobDataInit(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_init_bad_version()

Tests calling JobData constructor with bad version number.

test_init_blank()

Tests calling JobData constructor with blank JSON.

test_init_duplicate_input_name()

Tests calling JobData constructor with duplicate data input name.

test_init_duplicate_input_output_name()

Tests calling JobData constructor with duplicate data input and output name.

test_init_duplicate_output_name()

Tests calling JobData constructor with duplicate data output name.

test_init_no_input_name()

Tests calling JobData constructor with missing data input name.

test_init_no_output_name()

Tests calling JobData constructor with missing data output name.

test_init_successful_one_property()

Tests calling JobData constructor successfully with a single property input.

class job.test.configuration.data.test_job_data.TestJobDataRetrieveFiles(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_successful(*args, **keywargs)

Tests calling JobData._retrieve_files() successfully

class job.test.configuration.data.test_job_data.TestJobDataRetrieveInputDataFiles(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_bad_file_id(*args, **keywargs)

Tests calling JobData.retrieve_input_data_files() with an invalid file ID

test_successful(*args, **keywargs)

Tests calling JobData.retrieve_input_data_files() successfully

class job.test.configuration.data.test_job_data.TestJobDataStoreOutputDataFiles(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_successful(*args, **keywargs)

Tests calling JobData.store_output_data_files() successfully

class job.test.configuration.data.test_job_data.TestJobDataValidateInputFiles(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_bad_file_id()

Tests calling JobData.validate_input_files() with a file that has an invalid ID

test_bad_media_type()

Tests calling JobData.validate_input_files() with a file that has an invalid media type

test_missing_required()

Tests calling JobData.validate_input_files() when a file is required, but missing

test_multiple_given_single()

Tests calling JobData.validate_input_files() with a multiple file param given with a single file ID

test_multiple_missing_file_ids()

Tests calling JobData.validate_input_files() with a multiple file param missing the file_ids field

test_multiple_non_integrals()

Tests calling JobData.validate_input_files() with a multiple file param and non-integral file_ids field

test_multiple_non_list()

Tests calling JobData.validate_input_files() with a multiple file param with a non-list for file_ids field

test_not_required()

Tests calling JobData.validate_input_files() when a file is missing, but required

test_single_missing_file_id()

Tests calling JobData.validate_input_files() with a single file param missing the file_id field

test_single_non_integral()

Tests calling JobData.validate_input_files() with a single file param and non-integral file_id field

test_successful()

Tests calling JobData.validate_input_files() with a valid set of job data

class job.test.configuration.data.test_job_data.TestJobDataValidateOutputFiles(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_missing_output(*args, **keywargs)

Tests calling JobData.validate_output_files() when an output is missing

test_missing_workspace_id(*args, **keywargs)

Tests calling JobData.validate_output_files() when an output is missing the workspace_id field

test_multiple_outputs(*args, **keywargs)

Tests calling JobData.validate_output_files() when there are multiple outputs with the same workspace id

test_successful(*args, **keywargs)

Tests calling JobData.validate_output_files() with successful data

test_workspace_id_not_integer(*args, **keywargs)

Tests calling JobData.validate_output_files() when an output has a non-integral value for workspace_id

test_workspace_not_active(*args, **keywargs)

Tests calling JobData.validate_output_files() with a workspace that is not active

test_workspace_not_exist(*args, **keywargs)

Tests calling JobData.validate_output_files() with a workspace that does not exist

class job.test.configuration.data.test_job_data.TestJobDataValidateProperties(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_missing_required()

Tests calling JobData.validate_properties() when a property is required, but missing

test_missing_value()

Tests calling JobData.validate_properties() when a property is missing a value

test_not_required()

Tests calling JobData.validate_properties() when a property is missing, but is not required

test_required_successful()

Tests calling JobData.validate_properties() successfully with a required property

test_value_not_string()

Tests calling JobData.validate_properties() when a property has a non-string value

Module contents