error.test package¶
Submodules¶
error.test.test_models module¶
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