recipe.test.configuration.data package

Submodules

recipe.test.configuration.data.test_recipe_data module

class recipe.test.configuration.data.test_recipe_data.DummyDataFileStore

Bases: job.configuration.data.data_file.AbstractDataFileStore

get_workspaces(workspace_ids)
store_files(files, input_file_ids, job_exe)
class recipe.test.configuration.data.test_recipe_data.TestRecipeDataAddInputToData(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_successful_file()

Tests calling RecipeData.add_input_to_data() successfully with a file parameter

test_successful_file_list()

Tests calling RecipeData.add_input_to_data() successfully with a file list parameter

test_successful_property()

Tests calling RecipeData.add_input_to_data() successfully with a property parameter

class recipe.test.configuration.data.test_recipe_data.TestRecipeDataInit(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_init_bad_version()

Tests calling RecipeData constructor with bad version number.

test_init_blank()

Tests calling RecipeData constructor with blank JSON.

test_init_duplicate_input_name()

Tests calling RecipeData constructor with duplicate data input name.

test_init_no_input_name()

Tests calling RecipeData constructor with missing data input name.

test_init_successful_one_property()

Tests calling RecipeData constructor successfully with a single property input.

test_init_workspace_id_not_integer()

Tests calling RecipeData constructor with a non-integral value for workspace_id

class recipe.test.configuration.data.test_recipe_data.TestRecipeDataValidateInputFiles(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_bad_file_id()

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

test_bad_media_type()

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

test_missing_required()

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

test_multiple_given_single()

Tests calling RecipeData.validate_input_files() with a multiple file param that is provided with a single file ID

test_multiple_missing_file_ids()

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

test_multiple_non_integrals()

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

test_multiple_non_list()

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

test_not_required()

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

test_single_missing_file_id()

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

test_single_non_integral()

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

test_successful()

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

class recipe.test.configuration.data.test_recipe_data.TestRecipeDataValidateProperties(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_missing_required()

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

test_missing_value()

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

test_not_required()

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

test_required_successful()

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

test_value_not_string()

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

class recipe.test.configuration.data.test_recipe_data.TestRecipeDataValidateWorkspace(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_missing_workspace_id(*args, **keywargs)

Tests calling RecipeData.validate_workspace() when missing the workspace_id field

test_successful(*args, **keywargs)

Tests calling RecipeData.validate_workspace() with successful data

test_workspace_not_active(*args, **keywargs)

Tests calling RecipeData.validate_workspace() with a workspace that is not active

test_workspace_not_exist(*args, **keywargs)

Tests calling RecipeData.validate_workspace() with a workspace that does not exist

Module contents