job.test.configuration.interface package

Submodules

job.test.configuration.interface.test_configuration_interface module

class job.test.configuration.interface.test_configuration_interface.TestJobConfiguration(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_init_validation()

Tests the validation done in __init__

job.test.configuration.interface.test_job_interface module

class job.test.configuration.interface.test_job_interface.TestJobInterfaceAddOutputToConnection(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_successful()

Tests calling JobInterface.add_output_to_connection() successfully.

class job.test.configuration.interface.test_job_interface.TestJobInterfaceConvert(methodName='runTest')

Bases: django.test.testcases.TestCase

Tests performing conversion from lower to higher minor versions of interface schema.

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

Tests calling JobInterface.update() successfully.

class job.test.configuration.interface.test_job_interface.TestJobInterfacePostSteps(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_extra_products_are_fine(*args, **keywargs)
test_invalid_output_file(*args, **keywargs)
test_invalid_output_files(*args, **keywargs)
test_manifest_overrides_stdout(*args, **keywargs)
test_missing_output_files(*args, **keywargs)
test_output_data_media_types(*args, **keywargs)
test_output_file(*args, **keywargs)
test_output_file_with_geo_metadata(*args, **keywargs)
test_output_files(*args, **keywargs)
test_output_files_with_geo_metadata(*args, **keywargs)
test_parse_data(*args, **keywargs)
test_parse_stdout(*args, **keywargs)
test_parse_stdout_required(*args, **keywargs)
class job.test.configuration.interface.test_job_interface.TestJobInterfacePreSteps(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_absent_optional_file_in_command()
test_absent_optional_files_in_command()
test_absent_required_file_in_command()
test_absent_required_files_in_command()
test_complex_command()
test_file_in_command(*args, **keywargs)
test_files_in_command(*args, **keywargs)
test_output_dir_in_command()
test_property_in_command()
test_simple_case()
class job.test.configuration.interface.test_job_interface.TestJobInterfaceValidateConnection(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_no_workspace_needed()

Tests calling JobInterface.validate_connection() without a workspace, but none is needed.

test_required_workspace_missing()

Tests calling JobInterface.validate_connection() when a required workspace is missing

test_successful()

Tests calling JobInterface.validate_connection() successfully.

class job.test.configuration.interface.test_job_interface.TestJobInterfaceValidation(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_bad_version()

Tests calling JobInterface constructor with good and bad versions. Versions longer than 50 should fail.

test_command_param_will_fail_without_input()
test_command_param_will_pass_with_input()
test_command_string_allows_special_formats()
test_command_string_special_formats_should_have_dollar_sign()
test_definition_with_unkown_field_fails()
test_input_data_must_be_an_approved_type()
test_input_data_must_have_a_name()
test_input_data_must_have_a_type()
test_input_data_names_must_be_unique()
test_input_data_required_must_be_true_or_false()
test_input_name_appropriate()
test_interface_must_have_command()
test_interface_with_share_resource_works()
test_minimal_input_validation()
test_output_name_appropriate()
test_settings_required()
test_share_resources_must_have_unque_names()

job.test.configuration.interface.test_scale_file module

class job.test.configuration.interface.test_scale_file.TestScaleFileDescriptionMediaTypeAllowed(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_accept_all()

Tests calling ScaleFileDescription.is_media_type_allowed() when accepting all media types.

test_accept_specific()

Tests calling ScaleFileDescription.is_media_type_allowed() when accepting specific media types.

Module contents