generated from codersforcauses/django-nextjs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
backendTask must have a back end issueTask must have a back end issue
Description
Create Comprehensive Tests for Rooms App
Important
This issue has been created before the merging of #52.
Therefore, the outline / tests / function names / variables names below may change.
Description
The rooms app currently has no test coverage (tests.py is empty). We need to implement comprehensive unit and integration tests to ensure the authentication and user management functionality works correctly.
Scope
The following components need test coverage:
1. Models (server/api/room/models.py)
Locationmodel- Test
__str__method returns correct format
- Test
Amenitymodel- Test
__str__method returns correct format
- Test
Roommodel- Test
__str__method returns correct format - ...
- Test
2. Serializers (server/api/room/serializers.py:6)
AmenitySerializer- ...
LocationSerializer- ...
RoomSerializer- ...
3. Views (server/api/room/views.py:15)
RoomViewSet- ...
LocationViewSet- ...
AmenityViewSet- ...
4. URLs (server/api/room/urls.py)
- Test
/rooms/endpoint resolves correctly - Test
/locations/endpoint resolves correctly - Test
/amenities/endpoint resolves correctly - Test URL name resolution
Metadata
Metadata
Assignees
Labels
backendTask must have a back end issueTask must have a back end issue