geonode.base.tests
Attributes
Classes
Test that contact roles can be set as people profile |
|
Test class for render_menu and render_top_menu custom tags of base_tags |
|
Loading test thesausurs |
|
Loading test thesausurs |
|
Module Contents
- class geonode.base.tests.ThumbnailTests[source]
Bases:
geonode.tests.base.GeoNodeBaseTestSupport- test_empty_image()[source]
Tests that an empty image does not change the current resource thumbnail.
- class geonode.base.tests.TestCreationOfMissingMetadataAuthorsOrPOC[source]
Bases:
ThumbnailTests
- class geonode.base.tests.TestCreationOfContactRolesByDifferentInputTypes[source]
Bases:
ThumbnailTestsTest that contact roles can be set as people profile
- class geonode.base.tests.RenderMenuTagTest[source]
Bases:
geonode.tests.base.GeoNodeBaseTestSupportTest class for render_menu and render_top_menu custom tags of base_tags
- class geonode.base.tests.TestGetVisibleResource[source]
Bases:
django.test.TestCase- test_category_data_not_shown_for_missing_resourcebase_permissions()[source]
Test that a user without view permissions of a resource base does not see ISO category format data of the ISO category
- test_category_data_shown_for_with_resourcebase_permissions()[source]
Test that a user with view permissions of a resource base can see ISO format data of the ISO category
- class geonode.base.tests.TestTagThesaurus[source]
Bases:
django.test.TestCaseLoading test thesausurs
- class geonode.base.tests.TestThesaurusAvailableForm[source]
Bases:
django.test.TestCaseLoading test thesausurs
- test_form_is_valid_if_all_fields_are_missing()[source]
Is now always true since the required is moved to the UI (like the other fields)
- test_will_return_thesaurus_with_the_defaul_order_as_0()[source]
Update thesaurus order to 0 in order to check if the default order by id is observed
- class geonode.base.tests.TestGenerateThesaurusReference[source]
Bases:
django.test.TestCase- setUp()[source]
If the keyword.about does not exists, the url created will have a prefix and a specifier: as prefix:
use the Keyword’s thesaurus.about URI if it exists,
otherwise use as prefix the geonode site URL composed with some thesaurus info: f’{settings.SITEURL}/thesaurus/{thesaurus.identifier}’
as specifier:
we may use the ThesaurusKeyword.alt_label if it exists, otherwise its id
So the final about field value will be composed as f’{prefix}#{specifier}’