def setUp(self): super(TestMeetingCreateFormView, self).setUp() Conference.remove() self.user = AuthUserFactory() self.request = RequestFactory().post('/fake_path') self.view = MeetingCreateFormView mod_data = dict(data) mod_data.update({'admins': self.user.emails.first().address}) self.form = MeetingForm(data=mod_data) self.form.is_valid() self.url = reverse('meetings:create')
def setUp(self): super(TestMeetingListView, self).setUp() Conference.remove() ConferenceFactory() ConferenceFactory() ConferenceFactory()