tests.components.data.tests_int

Unit Test Data

class tests.components.data.tests_int.TestDataGetAll(methodName='runTest')

Bases: core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase

fixture = <tests.components.data.fixtures.fixtures.DataFixtures object>
test_data_get_all_return_collection_of_data()
test_data_get_all_return_objects_data_in_collection()
class tests.components.data.tests_int.TestDataGetAllByUserId(methodName='runTest')

Bases: core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase

fixture = <tests.components.data.fixtures.fixtures.DataFixtures object>
test_data_get_all_by_user_id_return_collection_of_data_from_user()
test_data_get_all_by_user_id_return_empty_collection_of_data_from_user_does_not_exist()
class tests.components.data.tests_int.TestDataGetAllExcept(methodName='runTest')

Bases: core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase

fixture = <tests.components.data.fixtures.fixtures.DataFixtures object>
test_data_get_all_except_empty_list_return_collection_of_data()
test_data_get_all_except_empty_list_return_objects_data_in_collection()
test_data_get_all_except_inexistant_id_return_collection_of_data()
test_data_get_all_except_inexistant_id_return_objects_data_in_collection()
test_data_get_all_except_no_params_return_collection_of_data()
test_data_get_all_except_no_params_return_objects_data_in_collection()
test_data_get_all_except_return_collection_of_data()
test_data_get_all_return_objects_data_in_collection()
class tests.components.data.tests_int.TestDataGetAllExceptUserId(methodName='runTest')

Bases: core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase

fixture = <tests.components.data.fixtures.fixtures.DataFixtures object>
test_data_get_all_by_user_id_return_full_collection_of_data_from_user_does_not_exist()
test_data_get_all_except_user_id_return_collection_of_data_where_user_is_not_owner()
class tests.components.data.tests_int.TestDataGetById(methodName='runTest')

Bases: core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase

fixture = <tests.components.data.fixtures.fixtures.DataFixtures object>
test_data_get_by_id_raises_api_error_if_not_found()
test_data_get_by_id_return_data_if_found()