geonode.documents.api.tests

Attributes

logger

Classes

DocumentsApiTests

Module Contents

geonode.documents.api.tests.logger[source]
class geonode.documents.api.tests.DocumentsApiTests[source]

Bases: rest_framework.test.APITransactionTestCase

fixtures = ['initial_data.json', 'group_test_data.json', 'default_oauth_apps.json'][source]
setUp()[source]
test_documents()[source]

Ensure we can access the Documents list.

test_extra_metadata_included_with_param()[source]
test_creation_return_error_if_file_is_not_passed()[source]

If file_path is not available, should raise error

test_creation_return_error_if_file_is_none()[source]

If file_path is not available, should raise error

test_creation_should_rase_exec_for_unsupported_files()[source]
test_creation_should_create_the_doc()[source]

If file_path is not available, should raise error

test_patch_point_of_contact()[source]
test_patch_metadata_author()[source]
test_patch_processor()[source]
test_patch_publisher()[source]
test_patch_custodian()[source]
test_patch_distributor()[source]
test_patch_resource_user()[source]
test_patch_resource_provider()[source]
test_patch_originator()[source]
test_patch_principal_investigator()[source]
test_creation_should_create_the_doc_and_update_the_bbox()[source]

If file_path is not available, should raise error

test_file_path_and_doc_path_are_not_returned()[source]

If file_path and doc_path should not be visible from the GET payload

test_creation_from_url_should_create_the_doc()[source]

If file_path is not available, should raise error

test_remote_document_is_marked_remote()[source]

Tests creating an external document set its sourcetype to REMOTE.

test_either_path_or_url_doc()[source]

If file_path is not available, should raise error