Skip to content

Commit

Permalink
Merge pull request #610 from CTPUG/double-abstract
Browse files Browse the repository at this point in the history
Double <abstract> tag
  • Loading branch information
stefanor committed Jul 23, 2021
2 parents 5eebd15 + d851fbd commit 378776f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 0 additions & 1 deletion wafer/schedule/templates/wafer.schedule/penta_schedule.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
{% endif %}
{% endfor %}
</persons>
<abstract/>
<recording>
{% if talk.video %}
<optout>false</optout>
Expand Down
10 changes: 9 additions & 1 deletion wafer/schedule/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1467,6 +1467,7 @@ def setUp(self):
venue2 = Venue.objects.create(order=2, name='Venue 2')
venue1.blocks.add(day1)
venue2.blocks.add(day1)
venue1.blocks.add(day2)

start1 = D.datetime(2013, 9, 22, 10, 0, 0, tzinfo=timezone.utc)
start2 = D.datetime(2013, 9, 22, 11, 0, 0, tzinfo=timezone.utc)
Expand All @@ -1491,6 +1492,13 @@ def setUp(self):
for index, item in enumerate(items):
item.slots.add(slots[index // 2])

user = get_user_model().objects.create_user('john', 'best@wafer.test',
'johnpassword')
talk = Talk.objects.create(title="Test talk", status=ACCEPTED,
corresponding_author_id=user.id)
talk_item = ScheduleItem.objects.create(venue=venue1, talk_id=talk.pk)
talk_item.slots.add(slots[4])

def test_pentabarf_view(self):
# We don't exhaustively test that the pentabarf view is valid pentabarf,
# instead we test that the XML is valid, and that we
Expand Down Expand Up @@ -1543,7 +1551,7 @@ def test_ics_view(self):
# No major errors
self.assertFalse(calendar.is_broken)
# Check number of events
self.assertEqual(len(calendar.walk(name='VEVENT')), 8)
self.assertEqual(len(calendar.walk(name='VEVENT')), 9)
# Check we have the right time in places
event = calendar.walk(name='VEVENT')[0]
self.assertEqual(event['dtstart'].params['value'], 'DATE-TIME')
Expand Down

0 comments on commit 378776f

Please sign in to comment.