Skip to content

Commit 205b925

Browse files
committed
fix test
1 parent adc5a43 commit 205b925

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

backend/schedule/tests/test_tasks.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -642,15 +642,16 @@ def _sent_for_upload_ready_to_notify(**kwargs):
642642
A job where the video and the thumbnail are already on YouTube, so the only
643643
thing left for `upload_schedule_item_video` to do is drafting the emails.
644644
"""
645-
return ScheduleItemSentForVideoUploadFactory(
646-
last_attempt_at=None,
647-
status=ScheduleItemSentForVideoUpload.Status.pending,
648-
video_uploaded=True,
649-
thumbnail_uploaded=True,
650-
schedule_item__youtube_video_id="vid_123",
651-
schedule_item__title="Test Title",
645+
defaults = {
646+
"last_attempt_at": None,
647+
"status": ScheduleItemSentForVideoUpload.Status.pending,
648+
"video_uploaded": True,
649+
"thumbnail_uploaded": True,
650+
"schedule_item__youtube_video_id": "vid_123",
651+
"schedule_item__title": "Test Title",
652652
**kwargs,
653-
)
653+
}
654+
return ScheduleItemSentForVideoUploadFactory(**defaults)
654655

655656

656657
def test_upload_schedule_item_video_drafts_an_email_to_each_speaker(sent_emails):

0 commit comments

Comments
 (0)