Skip to content

Commit 015ac31

Browse files
test: fix test broken by 40fd46a (ietf-tools#4847)
1 parent 40fd46a commit 015ac31

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ietf/meeting/tests_helpers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -590,26 +590,26 @@ def test_sessions_post_save_creates_meetecho_conferences(self, mock_create_metho
590590
mock_form.changed_data = []
591591
mock_form.requires_approval = True
592592

593-
mock_form.cleaned_data = {'remote_participation': None}
593+
mock_form.cleaned_data = {'date': date_today(), 'time': datetime.time(1, 23), 'remote_participation': None}
594594
sessions_post_save(RequestFactory().post('/some/url'), [mock_form])
595595
self.assertTrue(mock_create_method.called)
596596
self.assertCountEqual(mock_create_method.call_args[0][0], [])
597597

598598
mock_create_method.reset_mock()
599-
mock_form.cleaned_data = {'remote_participation': 'manual'}
599+
mock_form.cleaned_data['remote_participation'] = 'manual'
600600
sessions_post_save(RequestFactory().post('/some/url'), [mock_form])
601601
self.assertTrue(mock_create_method.called)
602602
self.assertCountEqual(mock_create_method.call_args[0][0], [])
603603

604604
mock_create_method.reset_mock()
605-
mock_form.cleaned_data = {'remote_participation': 'meetecho'}
605+
mock_form.cleaned_data['remote_participation'] = 'meetecho'
606606
sessions_post_save(RequestFactory().post('/some/url'), [mock_form])
607607
self.assertTrue(mock_create_method.called)
608608
self.assertCountEqual(mock_create_method.call_args[0][0], [session])
609609

610610
# Check that an exception does not percolate through sessions_post_save
611611
mock_create_method.side_effect = RuntimeError('some error')
612-
mock_form.cleaned_data = {'remote_participation': 'meetecho'}
612+
mock_form.cleaned_data['remote_participation'] = 'meetecho'
613613
# create mock request with session / message storage
614614
request = RequestFactory().post('/some/url')
615615
setattr(request, 'session', 'session')

0 commit comments

Comments
 (0)