Files
@ 7fac10241ec7
Branch filter:
Location: symposion_app/vendor/symposion/schedule/tests/test_views.py - annotation
7fac10241ec7
736 B
text/x-python
Improve attendee reports
Display attendee profile data in normal table without DataTables so
sorting is not applied, causing data to be confusing to read.
Include item quantity in attendee data report for accurate schwag packing.
Display attendee profile data in normal table without DataTables so
sorting is not applied, causing data to be confusing to read.
Include item quantity in attendee data report for accurate schwag packing.
51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 51709c6eaf39 | import json
from django.test.client import Client
from django.test import TestCase
from . import factories
class ScheduleViewTests(TestCase):
def test_empty_json(self):
c = Client()
r = c.get('/conference.json')
assert r.status_code == 200
conference = json.loads(r.content)
assert 'schedule' in conference
assert len(conference['schedule']) == 0
def test_populated_empty_presentations(self):
factories.SlotFactory.create_batch(size=5)
c = Client()
r = c.get('/conference.json')
assert r.status_code == 200
conference = json.loads(r.content)
assert 'schedule' in conference
assert len(conference['schedule']) == 5
|