Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Assign NameStore TupleLoad NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad Assign NameStore Str Expr Call NameLoad Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad Expr Call NameLoad Str Call AttributeLoad Str attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad Str Call AttributeLoad Str attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call NameLoad Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Call NameLoad keyword Dict Str Call AttributeLoad Str attr NameLoad NameLoad
N/A io StringIO N/A os N/A sys django.core.management call_command django.test modify_settings orchestra.models Workflow orchestra.tests.helpers OrchestraTestCase orchestra.tests.helpers.workflow assert_test_dir_v1_loaded orchestra.tests.helpers.workflow assert_test_dir_workflow_loaded orchestra.workflow.load load_workflow N/A NONEXISTENT_WORKFLOW_SLUG DOESNOTEXIST N/A TEST_WORKFLOWS_MODULE orchestra.tests.workflows N/A TEST_WORKFLOW test_dir N/A TEST_WORKFLOW_DIR N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ N/A N/A ../workflows/{} format TEST_WORKFLOW N/A VERSION_1 test_v1 N/A NONEXISTENT_VERSION DOESNOTEXIST LoadWorkflowSampleDataTestCase N/A OrchestraTestCase N/A test_loadworkflowsampledata N/A N/A self N/A N/A N/A  Ensure that workflow sample data loads correctly.  N/A N/A load_workflow TEST_WORKFLOW VERSION_1 N/A N/A assert_test_dir_workflow_loaded self N/A N/A assert_test_dir_v1_loaded self N/A invalid_args N/A VERSION_1 TEST_WORKFLOW N/A N/A {}/{}/ format TEST_WORKFLOW VERSION_1 N/A N/A {}.{} format TEST_WORKFLOW VERSION_1 N/A invalid_arg invalid_args N/A N/A invalid_stderr N/A StringIO N/A invalid_message Please specify workflow versions in the format N/A N/A call_command loadworkflowsampledata invalid_arg stderr invalid_stderr N/A N/A N/A self assertIn invalid_message N/A N/A invalid_stderr getvalue N/A v1_str N/A N/A {}/{} format TEST_WORKFLOW VERSION_1 N/A stdout N/A StringIO N/A N/A call_command loadworkflowsampledata v1_str stdout stdout N/A output N/A N/A stdout getvalue N/A success_message Successfully loaded sample data N/A N/A N/A self assertIn success_message output N/A N/A N/A sys modules N/A orchestra.tests.workflows.test_dir.load_sample_data N/A stderr1 N/A StringIO N/A N/A call_command loadworkflowsampledata N/A N/A {}/{} format NONEXISTENT_WORKFLOW_SLUG VERSION_1 stderr stderr1 N/A output1 N/A N/A stderr1 getvalue N/A no_workflow_error N/A N/A Workflow {} has not been loaded into the database format NONEXISTENT_WORKFLOW_SLUG N/A N/A N/A self assertIn no_workflow_error output1 N/A stderr2 N/A StringIO N/A N/A call_command loadworkflowsampledata N/A N/A {}/{} format TEST_WORKFLOW NONEXISTENT_VERSION stderr stderr2 N/A output2 N/A N/A stderr2 getvalue N/A no_version_error N/A N/A Version {} does not exist format NONEXISTENT_VERSION N/A N/A N/A self assertIn no_version_error output2 N/A module_path N/A N/A N/A os path join TEST_WORKFLOW_DIR load_sample_data.py N/A new_path N/A N/A N/A os path join TEST_WORKFLOW_DIR load_sample_data.py.BAK N/A N/A N/A N/A N/A os rename module_path new_path N/A stderr3 N/A StringIO N/A N/A call_command loadworkflowsampledata v1_str stderr stderr3 N/A output3 N/A N/A stderr3 getvalue N/A no_module_error An error occurred while loading sample data N/A N/A N/A self assertIn no_module_error output3 N/A N/A N/A N/A os rename new_path module_path N/A workflow N/A N/A N/A Workflow objects get slug TEST_WORKFLOW N/A N/A workflow sample_data_load_function None N/A N/A N/A workflow save N/A stderr4 N/A StringIO N/A N/A call_command loadworkflowsampledata v1_str stderr stderr4 N/A output4 N/A N/A stderr4 getvalue N/A no_load_function_error N/A N/A Workflow {} does not provide sample data format TEST_WORKFLOW N/A N/A N/A self assertIn no_load_function_error output4 N/A N/A N/A modify_settings INSTALLED_APPS N/A append N/A N/A {}.{} format TEST_WORKFLOWS_MODULE TEST_WORKFLOW