mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 06:51:08 -05:00
Add comprehensive tests for Parks API and models
- Implemented extensive test cases for the Parks API, covering endpoints for listing, retrieving, creating, updating, and deleting parks. - Added tests for filtering, searching, and ordering parks in the API. - Created tests for error handling in the API, including malformed JSON and unsupported methods. - Developed model tests for Park, ParkArea, Company, and ParkReview models, ensuring validation and constraints are enforced. - Introduced utility mixins for API and model testing to streamline assertions and enhance test readability. - Included integration tests to validate complete workflows involving park creation, retrieval, updating, and deletion.
This commit is contained in:
@@ -38,4 +38,16 @@ dependencies = [
|
||||
"coverage>=7.9.1",
|
||||
"poetry>=2.1.3",
|
||||
"piexif>=1.1.3",
|
||||
"django-environ>=0.12.0",
|
||||
"factory-boy>=3.3.3",
|
||||
"drf-spectacular>=0.27.0",
|
||||
"django-silk>=5.0.0",
|
||||
"django-debug-toolbar>=4.0.0",
|
||||
"nplusone>=1.0.0",
|
||||
"django-health-check>=3.17.0",
|
||||
"django-redis>=5.4.0",
|
||||
"sentry-sdk>=1.40.0",
|
||||
"python-json-logger>=2.0.7",
|
||||
"django-cloudflare-images>=0.6.0",
|
||||
"psutil>=7.0.0",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user