@@ -449,7 +449,9 @@ def test_homework_detail_with_scored_homework(self):
449449
450450 # make sure we have the latest version of the homework
451451 self .homework = Homework .objects .get (id = self .homework .id )
452- self .assertEqual (self .homework .state , HomeworkState .SCORED .value )
452+ self .assertEqual (
453+ self .homework .state , HomeworkState .SCORED .value
454+ )
453455 self .assertTrue (self .homework .is_scored ())
454456
455457 self .client .login (** credentials )
@@ -814,13 +816,14 @@ def test_homework_detail_submission_post_with_submissions(
814816 self .assertEqual (answer6 .answer_text , "1,2" )
815817
816818 def test_submit_homework_with_all_fields (self ):
819+ self .course .homework_problems_comments_field = True
820+ self .course .save ()
821+
817822 self .homework .homework_url_field = True
818823 self .homework .learning_in_public_cap = 7
819824 self .homework .time_spent_lectures_field = True
820825 self .homework .time_spent_homework_field = True
821- self .homework .problems_comments_field = True
822826 self .homework .faq_contribution_field = True
823-
824827 self .homework .save ()
825828
826829 self .client .login (** credentials )
@@ -969,8 +972,7 @@ def test_submit_homework_learning_in_public_empty_and_duplicates(
969972 "learning_in_public_links[]" : [
970973 "https://httpbin.org/status/200" ,
971974 "https://httpbin.org/status/200" ,
972- "https://github.com/DataTalksClub"
973- "" ,
975+ "https://github.com/DataTalksClub" ,
974976 ],
975977 }
976978
@@ -993,7 +995,7 @@ def test_submit_homework_learning_in_public_empty_and_duplicates(
993995
994996 expected_learning_in_public_links = [
995997 "https://httpbin.org/status/200" ,
996- "https://github.com/DataTalksClub"
998+ "https://github.com/DataTalksClub" ,
997999 ]
9981000 self .assertEqual (
9991001 submission .learning_in_public_links ,
0 commit comments