reservations/tests/test_reservation_api.py
def _get_reservation_payload(self, **kwargs):
        """Return reservation payload with some sensible defaults (1 hour duration)."""
        dt_from, dt_to = get_datetime_range_serialized(delta_end=timedelta(hours=1))
        values = {
            "title": "Reservation 1",
            "datetime_from": dt_from,
            "datetime_to": dt_to,
            "meeting_room_id": self.meeting_room.id,
        }
        values.update(**kwargs)
        return values
Return reservation payload with some sensible defaults (1 hour duration).
Return reservation payload with some sensible defaults (1 hour duration).
Return reservation payload with some sensible defaults ( 1 hour duration ) .
def _get_reservation_payload(self, **kwargs):
        dt_from, dt_to = get_datetime_range_serialized(delta_end=timedelta(hours=1))
        values = {
            "title": "Reservation 1",
            "datetime_from": dt_from,
            "datetime_to": dt_to,
            "meeting_room_id": self.meeting_room.id,
        }
        values.update(**kwargs)
        return values
def _get_reservation_payload ( self , ** kwargs ) : dt_from , dt_to = get_datetime_range_serialized ( delta_end = timedelta ( hours = 1 ) ) values = { "title" : "Reservation 1" , "datetime_from" : dt_from , "datetime_to" : dt_to , "meeting_room_id" : self . meeting_room . id , } values . update ( ** kwargs ) return values
Return reservation payload with some sensible defaults (1 hour duration).
Return reservation payload with some sensible defaults ( 1 hour duration ) .
"""Return reservation payload with some sensible defaults (1 hour duration)."""
self