Admin¶
Admin for population data package.
OpenCloseSystemAdmin ¶
Bases: ModelAdmin
Admin page for OpenCloseSystem model
PopulationEstimateCategoryAdmin ¶
Bases: ModelAdmin
Admin page for PopulationEstimateCategory model
PopulationStatusAdmin ¶
Bases: ModelAdmin
Admin page for PopulationStatus model
SamplingEffortCoverageAdmin ¶
Bases: ModelAdmin
Admin page for SamplingEffortCoverage model
Factories¶
Models¶
Models for population data package.
AnnualPopulation ¶
Bases: AnnualPopulationAbstract
Annual Population model.
clean ¶
Custom validation to ensure area_available_to_species is not greater than property_size_ha.
Source code in django_project/population_data/models.py
AnnualPopulationAbstract ¶
Bases: Model
"Annual Population model.
clean ¶
Custom validation to ensure the sum of adult_male and adult_female is not greater than total.
Source code in django_project/population_data/models.py
AnnualPopulationPerActivity ¶
Certainty ¶
Bases: Model
Certainty model.
OpenCloseSystem ¶
Bases: Model
Open Close System model.
PopulationEstimateCategory ¶
Bases: Model
Population Estimate Category model.
PopulationStatus ¶
Bases: Model
Population status model.
SamplingEffortCoverage ¶
Bases: Model
Sampling Effort Coverage model.
Serializers¶
Serializers for population data package.
CertaintySerializer ¶
Bases: ModelSerializer
Certainty Serializer
OpenCloseSystemSerializer ¶
Bases: ModelSerializer
OpenClose System Serializer
PopulationEstimateCategorySerializer ¶
Bases: ModelSerializer
PopulationEstimateCategory Serializer
PopulationStatusSerializer ¶
Bases: ModelSerializer
PopulationStatus Serializer
SamplingEffortCoverageSerializer ¶
Bases: ModelSerializer
SamplingEffortCoverage Serializer
Test Case¶
Test case for population data models.
AnnualPopulationPerActivityTestCase ¶
Bases: TestCase
Population count test case.
setUpTestData
classmethod
¶
SetUpTestData for population count test case.
Source code in django_project/population_data/tests/test_population_data_models.py
test_create_population_count ¶
Test create population count.
Source code in django_project/population_data/tests/test_population_data_models.py
test_delete_population_count ¶
Test delete population count.
Source code in django_project/population_data/tests/test_population_data_models.py
test_update_population_count ¶
Test update population count.
Source code in django_project/population_data/tests/test_population_data_models.py
test_year_activity_type_fields_unique_toghter_constraint ¶
Test year, annual population, and activity_type are unique togther.
Source code in django_project/population_data/tests/test_population_data_models.py
PopulationCountTestCase ¶
Bases: TestCase
Population count test case.
setUpTestData
classmethod
¶
SetUpTestData for population count test case.
Source code in django_project/population_data/tests/test_population_data_models.py
test_adult_population_validation ¶
Test that a ValidationError is raised when the sum of adult_male and adult_female exceeds the total.
Source code in django_project/population_data/tests/test_population_data_models.py
test_area_available_to_species ¶
Test that a ValidationError is raised when area available to species exceeds property size.
Source code in django_project/population_data/tests/test_population_data_models.py
test_create_population_count ¶
Test create population count.
Source code in django_project/population_data/tests/test_population_data_models.py
test_delete_population_count ¶
Test delete population count.
TestCertainty ¶
Bases: TestCase
Test for certainty model.
TestOpenCloseSystem ¶
TestPopulationEstimateCategory ¶
Bases: TestCase
Test for population estimate category model.
setUp ¶
test_create_population_estimate ¶
test create population estimate category.
Source code in django_project/population_data/tests/test_population_data_models.py
test_delete_population_estimate ¶
test delete population estimate category.
test_population_estimate_name_constraint ¶
Test population estimate category name contraint.
Source code in django_project/population_data/tests/test_population_data_models.py
test_update_population_estimate ¶
test update population estimate category.
Source code in django_project/population_data/tests/test_population_data_models.py
TestPopulationSatatus ¶
Bases: TestCase
Test for population status model.
setUp ¶
test_create_population_status ¶
test create population status.
Source code in django_project/population_data/tests/test_population_data_models.py
test_delete_population_status ¶
test_population_status_name_constraint ¶
Test population status name contraint.
Source code in django_project/population_data/tests/test_population_data_models.py
test_update_population_status ¶
test update population status.
Source code in django_project/population_data/tests/test_population_data_models.py
TestSamplingEffortCoverage ¶
Bases: TestCase
Test for sampling effort coverage model.
setUp ¶
test_create_sampling_effort_cov ¶
test create sampling effort coverage.
Source code in django_project/population_data/tests/test_population_data_models.py
test_delete_sampling_effort_cov ¶
test delete sampling effort coverage.
test_sampling_effort_cov_name_constraint ¶
Test sampling effort coverage name contraint.
Source code in django_project/population_data/tests/test_population_data_models.py
test_update_sampling_effort_cov ¶
test update sampling effort coverage.