Refactor project structure and update configurations for State Corp backend
- Updated project description in __init__.py - Enhanced .gitignore to exclude additional data files - Modified User model to remove first_name and last_name fields - Improved instance save method in services.py to include updated_at field - Added API tokens to .env.example for external services - Cleaned up test files for better readability - Updated Dockerfile and docker-compose.yml for improved setup - Revised README.md to reflect project changes and added changelog
This commit is contained in:
@@ -101,9 +101,7 @@ class APIPaginatedResponseTest(TestCase):
|
||||
def test_paginated_response(self):
|
||||
"""Test paginated response with correct metadata"""
|
||||
data = [{"id": 1}, {"id": 2}]
|
||||
response = api_paginated_response(
|
||||
data, page=1, page_size=10, total_count=25
|
||||
)
|
||||
response = api_paginated_response(data, page=1, page_size=10, total_count=25)
|
||||
|
||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||
self.assertEqual(response.data["data"], data)
|
||||
|
||||
Reference in New Issue
Block a user