0001-tests-correct-typo-on-DTEND-in-booking-ics-test-4354.patch
tests/test_api.py | ||
---|---|---|
779 | 779 |
formatted_start_date = event.start_datetime.strftime('%Y%m%dT%H%M%S') |
780 | 780 |
booking_ics = Booking.objects.get(id=resp.json['booking_id']).get_ics() |
781 | 781 |
assert ( |
782 | 782 |
'UID:%s-%s-%s\r\n' % (event.start_datetime.isoformat(), agenda.pk, resp.json['booking_id']) |
783 | 783 |
in booking_ics |
784 | 784 |
) |
785 | 785 |
assert 'SUMMARY:\r\n' in booking_ics |
786 | 786 |
assert 'DTSTART:%sZ\r\n' % formatted_start_date in booking_ics |
787 |
assert 'DTEDND:' not in booking_ics
|
|
787 |
assert 'DTEND:' not in booking_ics |
|
788 | 788 | |
789 | 789 |
# test with additional data |
790 | 790 |
resp = app.post_json( |
791 | 791 |
'/api/agenda/%s/fillslot/%s/' % (agenda.id, event.id), |
792 | 792 |
params={ |
793 | 793 |
'label': 'foo', |
794 | 794 |
'user_name': 'bar', |
795 | 795 |
'backoffice_url': 'http://example.net/', |
796 |
- |