Skip to content

Commit

Permalink
Update care/emr/tests/test_schedule_api.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
rithviknishad and coderabbitai[bot] authored Jan 30, 2025
1 parent 56fbf56 commit eab7bc3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions care/emr/tests/test_schedule_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,12 +952,12 @@ def test_create_availability_validate_duration_multiple_of_slot_size_in_minutes(
)

def test_create_availability_start_time_greater_than_end_time(self):
"""Test validation rules for ensuring availability duration is multiple of slot size in minutes."""
"""Test validation rules for ensuring start time is before end time."""
permissions = [UserSchedulePermissions.can_write_user_schedule.name]
role = self.create_role_with_permissions(permissions)
self.attach_role_facility_organization_user(self.organization, self.user, role)

# Try to create availability with overlapping time ranges for same day
# Try to create availability with end time before start time
data = self.generate_availability_data(
availability=[
{
Expand All @@ -973,7 +973,6 @@ def test_create_availability_start_time_greater_than_end_time(self):
"Start time must be earlier than end time",
status_code=400,
)

def test_create_availability_validate_slot_type(self):
"""Test validation rules for different slot types when creating availability slots."""
permissions = [UserSchedulePermissions.can_write_user_schedule.name]
Expand Down

0 comments on commit eab7bc3

Please sign in to comment.