示例#1
0
class UberShutDown:
    def default(self, *args, **kwargs):
        return render('closed.html')

    signups = signups.Root()
    schedule = schedule.Root()
    preregistration = preregistration.Root()
示例#2
0
def test_schedule_tsv(create_events):
    response = schedule.Root().schedule_tsv()
    if isinstance(response, bytes):
        response = response.decode('utf-8')

    lines = response.split('\n')
    assert len(lines) == 41
    assert lines[0].strip() == 'Session Title\tDate\tTime Start\tTime End\tRoom/Location\t' \
        'Schedule Track (Optional)\tDescription (Optional)'
示例#3
0
def test_csv(create_events, admin_attendee):
    response = schedule.Root().csv()
    if isinstance(response, bytes):
        response = response.decode('utf-8')

    lines = response.split('\n')
    assert len(lines) == 41
    assert lines[0].strip() == 'Session Title,Date,Time Start,Time End,Room/Location,Schedule Track (Optional),' \
        'Description (Optional),Allow Checkin (Optional),Checkin Begin (Optional),Limit Spaces? (Optional),' \
        'Allow Waitlist (Optional)'