geonode.harvesting.tests.test_api_serializers

Attributes

_REQUEST_FACTORY

Classes

BriefHarvesterSerializerTestCase

HarvesterSerializerTestCase

BriefAsynchronousHarvestingSessionSerializerTestCase

HarvestableResourceSerializerTestCase

Module Contents

geonode.harvesting.tests.test_api_serializers._REQUEST_FACTORY[source]
class geonode.harvesting.tests.test_api_serializers.BriefHarvesterSerializerTestCase[source]

Bases: geonode.tests.base.GeoNodeBaseTestSupport

remote_url = 'test.com'[source]
name = 'This is geonode harvester'[source]
user[source]
harvester_type = 'geonode.harvesting.harvesters.geonodeharvester.GeonodeUnifiedHarvesterWorker'[source]
classmethod setUpTestData()[source]
test_serializer_is_able_to_serialize_model_instance()[source]
class geonode.harvesting.tests.test_api_serializers.HarvesterSerializerTestCase[source]

Bases: geonode.tests.base.GeoNodeBaseTestSupport

remote_url = 'test.com'[source]
name = 'This is geonode harvester'[source]
user[source]
harvester_type = 'geonode.harvesting.harvesters.geonodeharvester.GeonodeUnifiedHarvesterWorker'[source]
classmethod setUpTestData()[source]
test_serializer_is_able_to_serialize_model_instance()[source]
test_validate_also_validates_worker_specific_config(mock_validate_config)[source]
test_validate_does_not_allow_changing_status_and_worker_specific_config()[source]
test_create_does_not_allow_setting_custom_status()[source]
test_create()[source]
test_update_errors_out_if_current_status_is_not_ready()[source]
test_update_errors_out_when_client_tries_to_set_status_ready()[source]
test_update_calls_update_harvestable_resources_task(mock_tasks)[source]
test_update_calls_harvesting_dispatcher_task(mock_tasks)[source]
test_update_calls_update_harvester_availability_task(mock_tasks)[source]
test_update_updates_harvestable_resources_whenever_worker_config_changes(mock_tasks)[source]
class geonode.harvesting.tests.test_api_serializers.BriefAsynchronousHarvestingSessionSerializerTestCase[source]

Bases: geonode.tests.base.GeoNodeBaseTestSupport

harvester: geonode.harvesting.models.Harvester[source]
classmethod setUpTestData()[source]
test_serializer_is_able_to_serialize_model_instance()[source]
class geonode.harvesting.tests.test_api_serializers.HarvestableResourceSerializerTestCase[source]

Bases: geonode.tests.base.GeoNodeBaseTestSupport

unique_identifier = 'some-identifier'[source]
title = 'something'[source]
remote_resource_type = 'documents'[source]
default_should_be_harvested = False[source]
classmethod setUpTestData()[source]
test_serializer_is_able_to_serialize_model_instance()[source]
test_serializer_is_allowed_to_change_instance_should_be_harvested_attribute()[source]