geonode.api.tests

Attributes

logger

Classes

PermissionsApiTests

SearchApiTests

Test the search

ThesauriApiTests

Module Contents

geonode.api.tests.logger[source]
class geonode.api.tests.PermissionsApiTests[source]

Bases: tastypie.test.ResourceTestCaseMixin, geonode.tests.base.GeoNodeBaseTestSupport

classmethod setUpClass()[source]
classmethod tearDownClass()[source]
setUp()[source]
test_dataset_get_list_unauth_all_public()[source]

Test that the correct number of layers are returned when the client is not logged in and all are public

test_datasets_get_list_unauth_some_public()[source]

Test that if a layer is not public then not all are returned when the client is not logged in

test_datasets_get_list_auth_some_public()[source]

Test that if a layer is not public then all are returned if the client is not logged in

test_dataset_get_list_dataset_private_to_one_user()[source]

Test that if a layer is only visible by admin, then does not appear in the unauthenticated list nor in the list when logged is as bobby

test_dataset_get_detail_unauth_dataset_not_public()[source]

Test that layer detail gives 404 when not public and not logged in

test_new_user_has_access_to_old_datasets()[source]

Test that a new user can access the public available layers

test_outh_token()[source]
test_api_lockdown_false()[source]
test_profiles_lockdown()[source]
test_owners_lockdown()[source]
test_groups_lockdown()[source]
test_regions_lockdown()[source]
test_tags_lockdown()[source]
class geonode.api.tests.SearchApiTests[source]

Bases: tastypie.test.ResourceTestCaseMixin, geonode.tests.base.GeoNodeBaseTestSupport

Test the search

fixtures = ['initial_data.json', 'group_test_data.json', 'default_oauth_apps.json', 'test_thesaurus.json'][source]
classmethod setUpClass()[source]
classmethod tearDownClass()[source]
setUp()[source]
test_profiles_filters()[source]

Test profiles filtering

test_groups_filters()[source]

Test groups filtering

test_category_filters()[source]

Test category filtering

test_metadata_filters()[source]

Test category filtering

test_tag_filters()[source]

Test keywords filtering

test_owner_filters()[source]

Test owner filtering

test_title_filter()[source]

Test title filtering

test_date_filter()[source]

Test date filtering

test_extended_text_filter()[source]

Test that the extended text filter works as expected

test_the_api_should_return_all_datasets_with_metadata_false()[source]
test_the_api_should_return_all_datasets_with_metadata_true()[source]
test_the_api_should_return_all_documents_with_metadata_false()[source]
test_the_api_should_return_all_documents_with_metadata_true()[source]
test_the_api_should_return_all_maps_with_metadata_false()[source]
test_the_api_should_return_all_maps_with_metadata_true()[source]
test_api_will_return_a_valid_json_response()[source]
test_will_return_empty_if_the_thesaurus_does_not_exists()[source]
test_will_return_keywords_for_the_selected_thesaurus_if_exists()[source]
test_will_return_empty_if_the_alt_label_does_not_exists()[source]
test_will_return_keywords_for_the_selected_alt_label_if_exists()[source]
test_will_return_empty_if_the_kaywordId_does_not_exists()[source]
test_will_return_expected_keyword_label_for_existing_lang(lang)[source]
test_will_return_default_keyword_label_for_not_existing_lang(lang)[source]
test_the_api_should_return_all_map_categories_with_metadata_false()[source]
test_the_api_should_return_all_map_categories_with_metadata_true()[source]
test_the_api_should_return_all_document_categories_with_metadata_false()[source]
test_the_api_should_return_all_document_categories_with_metadata_true()[source]
class geonode.api.tests.ThesauriApiTests[source]

Bases: geonode.tests.base.GeoNodeBaseTestSupport

classmethod setUpClass()[source]
classmethod tearDownClass()[source]
setUp()[source]
classmethod _create_thesauri()[source]
classmethod _create_resources()[source]
test_resources_filtered()[source]