tests.rest.xsl_transformation.tests_int¶
Integration tests for xsl transformation rest api
-
class
tests.rest.xsl_transformation.tests_int.TestDeleteXslTransformationDetail(methodName='runTest')¶ Bases:
core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase-
fixture= <tests.rest.xsl_transformation.fixtures.fixtures.XslTransformationFixtures object>¶
-
setUp()¶ Insert needed data.
Returns:
-
test_delete_raise_404_when_not_found()¶
-
test_post_raise_500_sever_error_when_general_error_occured()¶
-
test_post_return_204_if_document_is_deleted_whit_success()¶
-
-
class
tests.rest.xsl_transformation.tests_int.TestGetAllXslTransformationList(methodName='runTest')¶ Bases:
core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase-
fixture= <tests.rest.xsl_transformation.fixtures.fixtures.XslTransformationFixtures object>¶
-
setUp()¶ Insert needed data.
Returns:
-
test_get_all_returns_status_403_with_no_permission_needed()¶
-
-
class
tests.rest.xsl_transformation.tests_int.TestGetXslTransformationDetail(methodName='runTest')¶ Bases:
core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase-
fixture= <tests.rest.xsl_transformation.fixtures.fixtures.XslTransformationFixtures object>¶
-
setUp()¶ Insert needed data.
Returns:
-
test_get_raise_404_when_not_found()¶
-
test_get_raise_500_sever_error_when_general_error_occured()¶
-
test_get_returns_object_when_found()¶
-
-
class
tests.rest.xsl_transformation.tests_int.TestPatchXslTransformationDetail(methodName='runTest')¶ Bases:
core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase-
fixture= <tests.rest.xsl_transformation.fixtures.fixtures.XslTransformationFixtures object>¶
-
setUp()¶ Insert needed data.
Returns:
-
test_patch_raise_404_when_not_found()¶
-
test_patch_raise_500_sever_error_when_general_error_occured()¶
-
-
class
tests.rest.xsl_transformation.tests_int.TestPostXslTransformationList(methodName='runTest')¶ Bases:
core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase-
fixture= <tests.rest.xsl_transformation.fixtures.fixtures.XslTransformationFixtures object>¶
-
setUp()¶ Insert needed data.
Returns:
-
test_post_returns_status_201_if_data_are_valid_with_admin_user()¶
-
test_post_returns_status_400_if_data_are_not_valid_with_admin_user()¶
-
-
class
tests.rest.xsl_transformation.tests_int.TestPostXslTransformationTransform(methodName='runTest')¶ Bases:
core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase-
fixture= <tests.rest.xsl_transformation.fixtures.fixtures.XslTransformationFixtures object>¶
-
setUp()¶ Insert needed data.
Returns:
-
test_post_raise_error_500_if_xslt_does_not_exist()¶
-
test_post_return_status_200_if_xml_and_xslt_name_are_valid_parameters()¶
-