tests.rest.blob.tests_int

Integration Test for Blob Rest API

class tests.rest.blob.tests_int.TestBlobDeleteList(methodName='runTest')

Bases: core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase

fixture = <tests.components.blob.fixtures.fixtures.BlobFixtures object>
setUp()

Insert needed data.

Returns:

test_post_a_list_containing_other_user_blob_as_superuser_returns_http_204(**kwargs)
test_post_a_list_containing_other_user_blob_returns_http_403()
class tests.rest.blob.tests_int.TestBlobDetail(methodName='runTest')

Bases: core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase

fixture = <tests.components.blob.fixtures.fixtures.BlobFixtures object>
setUp()

Insert needed data.

Returns:

test_delete_deletes_one_blob_from_database(**kwargs)
test_delete_other_user_as_superuser_returns_http_204(**kwargs)
test_delete_other_user_blob_returns_http_403(**kwargs)
test_delete_returns_http_204(**kwargs)
test_delete_wrong_id_returns_http_404(**kwargs)
test_get_other_user_blob_returns_http_200(**kwargs)
test_get_returns_blob(**kwargs)
test_get_returns_http_200(**kwargs)
test_get_wrong_id_returns_http_404(**kwargs)
class tests.rest.blob.tests_int.TestBlobDownload(methodName='runTest')

Bases: core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase

fixture = <tests.components.blob.fixtures.fixtures.BlobFixtures object>
setUp()

Insert needed data.

Returns:

test_get_other_user_blob_returns_http_200(**kwargs)
test_get_returns_http_200(**kwargs)
test_get_wrong_id_returns_http_404(**kwargs)
class tests.rest.blob.tests_int.TestBlobList(methodName='runTest')

Bases: core_main_app.utils.integration_tests.integration_base_test_case.MongoIntegrationBaseTestCase

fixture = <tests.components.blob.fixtures.fixtures.BlobFixtures object>
setUp()

Insert needed data.

Returns:

test_get_as_superuser_returns_all_user_blobs(**kwargs)
test_get_filtered_by_correct_name_returns_correct_blob(**kwargs)
test_get_filtered_by_correct_name_returns_http_200(**kwargs)
test_get_filtered_by_incorrect_name_returns_empty_list(**kwargs)
test_get_filtered_by_incorrect_name_returns_http_200(**kwargs)
test_get_returns_all_user_blobs(**kwargs)
test_get_returns_http_200(**kwargs)
test_post_adds_an_entry_in_database(**kwargs)
test_post_incorrect_file_parameter_returns_http_400(**kwargs)
test_post_returns_http_201(**kwargs)