error.test package

Submodules

error.test.test_models module

class error.test.test_models.TestErrorManager(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_save_job_error_models()

Tests successfully calling save_job_error_models()

class error.test.test_models.Test_get_job_error(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()
test_get_job_error()

Tests successfully calling get_job_error()

error.test.test_views module

class error.test.test_views.TestErrorDetailsViewV6(methodName='runTest')

Bases: rest_framework.test.APITestCase

api = u'v6'
setUp()
test_edit_error()

Test that the edit error api is removed in v6.

test_get_error_not_found()

Test calling the Get Error method with a bad error id.

test_get_error_success()

Test successfully calling the Get Error method.

class error.test.test_views.TestErrorsViewV6(methodName='runTest')

Bases: rest_framework.test.APITestCase

api = u'v6'
setUp()
test_create_error()

Test that the create error API is gone in v6

test_list_errors()

Tests successfully calling the get Errors method.

test_list_errors_filter_builtin()

Tests successfully calling the get Errors method.

test_list_errors_filter_category()
test_list_errors_filter_job_type()
test_list_errors_filter_name()
test_list_errors_filter_time()

error.test.utils module

Defines utility methods for testing errors

error.test.utils.create_error(name=None, title=None, description=u'Test error description', category=u'SYSTEM', is_builtin=False, should_be_retried=False, job_type_name=None)

Creates a error model for unit testing

Returns:The error model
Return type:error.models.Error

Module contents