job.test.seed package¶
Subpackages¶
Submodules¶
job.test.seed.test_job_data module¶
-
class
job.test.seed.test_job_data.
DummyDataFileStore
¶ Bases:
job.configuration.data.data_file.AbstractDataFileStore
-
get_workspaces
(workspace_ids)¶
-
store_files
(files, input_file_ids, job_exe)¶ Parameters: - files – workspace id -> [ProductFileMetadata]
- input_file_ids –
- job_exe –
Returns:
-
-
class
job.test.seed.test_job_data.
TestJobData
(methodName='runTest')¶ Bases:
django.test.testcases.TransactionTestCase
Tests functions in the JobData module.
-
setUp
()¶
-
test_retrieve_files_with_id
(*args, **keywargs)¶
-
test_retrieve_input_data_files_failure_multiple_for_single_input_file
(*args, **keywargs)¶
-
test_retrieve_input_data_files_missing_file
(*args, **keywargs)¶
-
test_retrieve_input_data_files_missing_file_not_required
(*args, **keywargs)¶
-
test_retrieve_input_data_files_missing_plurality_mismatch
(*args, **keywargs)¶
-
test_retrieve_input_data_files_success_multiple_input_file
(*args, **keywargs)¶
-
test_retrieve_input_data_files_success_single_input_file
(*args, **keywargs)¶
-
test_store_output_files
(*args, **keywargs)¶
-
job.test.seed.test_manifest module¶
-
class
job.test.seed.test_manifest.
TestSeedManifest
(methodName='runTest')¶ Bases:
django.test.testcases.TestCase
Tests functions in the manifest module.
-
setUp
()¶
-
test_init_default_values
()¶ Tests creating and validating a Seed manifest JSON and ensures the correct defaults are used
-
test_init_validation
()¶ Tests creating and validating a Seed manifest JSON
-
job.test.seed.test_metadata module¶
-
class
job.test.seed.test_metadata.
TestSeedMetadata
(methodName='runTest')¶ Bases:
django.test.testcases.TestCase
Tests functions in the manifest module.
-
setUp
()¶
-
test_get_data_copy_by_value
()¶
-
test_get_properties_empty_dict
()¶
-
test_get_properties_null
()¶
-
test_get_properties_values
()¶
-
test_metadata_from_json_feature
()¶
-
test_metadata_from_json_feature_collection
()¶
-
test_metadata_from_json_geometry
()¶
-
test_metadata_from_json_geometry_collection
()¶
-
test_metadata_from_json_invalid_geojson
()¶
-
test_set_properties_empty_properties
()¶
-
test_set_properties_existing_properties
()¶
-
test_set_properties_null_properties
()¶
-
job.test.seed.test_types module¶
-
class
job.test.seed.test_types.
TestSeedInputsJson
(methodName='runTest')¶ Bases:
django.test.testcases.TestCase
-
setUp
()¶
-
-
class
job.test.seed.test_types.
TestSeedOutputsFiles
(methodName='runTest')¶ Bases:
django.test.testcases.TestCase
-
setUp
()¶
-
test_get_files
(*args, **keywargs)¶
-
test_get_files_multiple
(*args, **keywargs)¶
-
test_get_files_single_output_file_with_metadata_files_to_exclude
(*args, **keywargs)¶
-
test_missing_required_output
(*args, **keywargs)¶
-
test_unexpected_multiple_outputs
(*args, **keywargs)¶
-