def test_can_see_talk(client, event, slot):
response = client.get(slot.submission.urls.public, follow=True)
assert event.schedules.count() == 2
assert response.status_code == 200
content = response.content.decode()
assert content.count(slot.submission.title) >= 2 # meta+h1
assert slot.submission.abstract in content
assert slot.submission.description in content
assert formats.date_format(slot.start, 'Y-m-d, H:i') in content
assert formats.date_format(slot.end, 'H:i') in content
assert str(slot.room.name) in content
assert 'fa-pencil' not in content # edit btn
assert 'fa-video-camera' not in content # do not record
评论列表
文章目录