recipe.test.configuration.definition package

Submodules

recipe.test.configuration.definition.test_recipe_definition module

class recipe.test.configuration.definition.test_recipe_definition.DummyDataFileStore

Bases: job.configuration.data.data_file.AbstractDataFileStore

get_workspaces(workspace_ids)
store_files(files, input_file_ids, job_exe)
class recipe.test.configuration.definition.test_recipe_definition.TestRecipeDefinitionGetGraph(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_successful()

Tests calling RecipeDefinition.get_graph() successfully

class recipe.test.configuration.definition.test_recipe_definition.TestRecipeDefinitionGetJobTypeKeys(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_get_job_type_keys_empty()

Tests getting job type keys when there are no jobs defined.

test_get_job_type_keys_multi()

Tests getting job type keys from the definition.

test_get_job_type_keys_one()

Tests getting a job type key from the definition.

test_get_job_type_keys_unique()

Tests getting job type keys without duplicates.

class recipe.test.configuration.definition.test_recipe_definition.TestRecipeDefinitionGetJobTypeMap(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_successful_new_recipe()

Tests calling RecipeDefinition.get_job_type_map() successfully.

class recipe.test.configuration.definition.test_recipe_definition.TestRecipeDefinitionGetJobTypes(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_get_job_types_empty()

Tests getting job types when there are no jobs defined.

test_get_job_types_multi()

Tests getting job types from the definition.

test_get_job_types_one()

Tests getting a job type from the definition.

test_get_job_types_unique()

Tests getting job types without duplicates.

class recipe.test.configuration.definition.test_recipe_definition.TestRecipeDefinitionInit(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_init_bad_version()

Tests calling RecipeDefinition constructor with bad version number.

test_init_bare_min()

Tests calling RecipeDefinition constructor with bare minimum JSON.

test_init_cyclic_dependency()

Tests calling RecipeDefinition constructor with a cyclic dependency.

test_init_dulicate_job_input()

Tests calling RecipeDefinition constructor with duplicate job inputs.

test_init_input_data_name()

Tests calling RecipeDefinition constructor with good and bad input_data names.

test_init_job_name()

Tests calling RecipeDefinition constructor with good and bad job names.

test_init_successful()

Tests calling RecipeDefinition constructor successfully.

test_init_undefined_dependency()

Tests calling RecipeDefinition constructor with an undefined job dependency.

test_init_undefined_recipe_input()

Tests calling RecipeDefinition constructor with an undefined recipe input.

class recipe.test.configuration.definition.test_recipe_definition.TestRecipeDefinitionValidateData(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_missing_workspace(*args, **keywargs)

Tests calling RecipeDefinition.validate_data() with a missing required workspace.

test_successful(*args, **keywargs)

Tests calling RecipeDefinition.validate_data() successfully.

test_successful_no_workspace(*args, **keywargs)

Tests calling RecipeDefinition.validate_data() successfully with no workspace.

class recipe.test.configuration.definition.test_recipe_definition.TestRecipeDefinitionValidateJobInterfaces(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_invalid_job_type()

Tests calling RecipeDefinition.validate_job_interfaces() with an invalid job type.

test_successful()

Tests calling RecipeDefinition.validate_job_interfaces() successfully.

Module contents