geonode.layers.tests
Attributes
Classes
Tests geonode.layers app/module |
|
Helper class for notification tests |
|
This function will check if the files uploaded is a metadata file |
|
This function will check if the files uploaded is a metadata file |
|
Unittest to ensure that the management command "set_layers_permissions" |
|
Functions
|
Module Contents
- class geonode.layers.tests.DatasetsTest[source]
Bases:
geonode.tests.base.GeoNodeBaseTestSupportTests geonode.layers app/module
- test_describe_data_2()[source]
/data/geonode:CA/metadata -> Test accessing the description of a layer
- test_describe_data_3()[source]
/data/geonode:CA/metadata_detail -> Test accessing the description of a layer
- test_describe_data()[source]
/data/geonode:CA/metadata -> Test accessing the description of a layer
- test_assign_change_dataset_data_perm()[source]
Ensure set_permissions supports the change_dataset_data permission.
- class geonode.layers.tests.TestLayerDetailMapViewRights[source]
Bases:
geonode.tests.base.GeoNodeBaseTestSupport- test_that_keyword_multiselect_is_disabled_for_non_admin_users()[source]
Test that keyword multiselect widget is disabled when the user is not an admin
- test_that_keyword_multiselect_is_not_disabled_for_admin_users()[source]
Test that only admin users can create/edit keywords when FREETEXT_KEYWORDS_READONLY=True
- test_that_non_admin_user_cannot_create_edit_keyword()[source]
Test that non admin users cannot edit/create keywords when FREETEXT_KEYWORDS_READONLY=True
- test_that_keyword_multiselect_is_enabled_for_non_admin_users_when_freetext_keywords_readonly_istrue()[source]
Test that keyword multiselect widget is not disabled when the user is not an admin and FREETEXT_KEYWORDS_READONLY=False
- class geonode.layers.tests.LayerNotificationsTestCase[source]
Bases:
geonode.tests.utils.NotificationsTestsHelperHelper class for notification tests
This provides:
- class geonode.layers.tests.TestIsXmlUploadOnly[source]
Bases:
django.test.TestCaseThis function will check if the files uploaded is a metadata file
- class geonode.layers.tests.TestIsSldUploadOnly[source]
Bases:
django.test.TestCaseThis function will check if the files uploaded is a metadata file
- class geonode.layers.tests.TestDatasetForm[source]
Bases:
geonode.tests.base.GeoNodeBaseTestSupport- test_resource_form_is_valid_single_user_contact_role()[source]
test if passing a single user to a contact role form is working
- class geonode.layers.tests.SetLayersPermissionsCommand[source]
Bases:
geonode.tests.base.GeoNodeBaseTestSupportUnittest to ensure that the management command “set_layers_permissions” behaves as expected
- test_user_get_the_download_permissions_for_the_selected_dataset()[source]
Given a user, the compact perms and the resource id, it shoul set the permissions for the selected resource
- test_user_get_the_view_permissions_for_the_selected_dataset()[source]
Given a user, the compact perms and the resource id, it shoul set the permissions for the selected resource
- test_user_get_the_edit_permissions_for_the_selected_dataset()[source]
Given a user, the compact perms and the resource id, it shoul set the permissions for the selected resource
- test_user_get_the_manage_permissions_for_the_selected_dataset()[source]
Given a user, the compact perms and the resource id, it shoul set the permissions for the selected resource
- test_anonymous_user_cannot_get_edit_permissions()[source]
Given the Anonymous user, we should get an error trying to set “edit” permissions.
- class geonode.layers.tests.DummyDownloadHandler(request, resource_name)[source]
Bases:
geonode.layers.download_handler.DatasetDownloadHandler