geonode.harvesting.tests.test_models

Classes

HarvesterTestCase

AsynchronousHarvestingSessionTestCase

HarvestableResourceTestCase

WorkerConfigValidationTestCase

Module Contents

class geonode.harvesting.tests.test_models.HarvesterTestCase[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.GeonodeLegacyHarvester'[source]
setUp()[source]
test_get_worker_works()[source]
test_validate_worker_configuration(mock_import_string, mock_jsonschema)[source]
test_get_next_check_availability_dispatch_time(mock_timezone)[source]
test_get_next_dispatch_time(mock_timezone)[source]
class geonode.harvesting.tests.test_models.AsynchronousHarvestingSessionTestCase[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.GeonodeLegacyHarvester'[source]
setUp()[source]
test_check_attributes()[source]

Test attributes of harvester_session after created.

class geonode.harvesting.tests.test_models.HarvestableResourceTestCase[source]

Bases: geonode.tests.base.GeoNodeBaseTestSupport

unique_identifier = 'id'[source]
title = 'Test'[source]
remote_url = 'test.com'[source]
name = 'This is geonode harvester'[source]
user[source]
harvester_type = 'geonode.harvesting.harvesters.geonodeharvester.GeonodeLegacyHarvester'[source]
setUp()[source]
test_check_attributes()[source]
class geonode.harvesting.tests.test_models.WorkerConfigValidationTestCase[source]

Bases: django.test.SimpleTestCase

test_validate_worker_configuration(mock_import_string, mock_jsonschema)[source]