@@ -443,6 +443,7 @@ def test_learner_course_resume__pre_test_active(self):
443443 collection = self .classroom ,
444444 test_type = TestType .Pre ,
445445 closed = True ,
446+ activated_by = self .coach ,
446447 )
447448
448449 UnitTestAssignment .objects .create (
@@ -451,6 +452,7 @@ def test_learner_course_resume__pre_test_active(self):
451452 collection = self .classroom ,
452453 test_type = TestType .Post ,
453454 closed = True ,
455+ activated_by = self .coach ,
454456 )
455457
456458 unit , lessons = units [2 ]
@@ -460,6 +462,7 @@ def test_learner_course_resume__pre_test_active(self):
460462 collection = self .classroom ,
461463 test_type = TestType .Pre ,
462464 closed = False ,
465+ activated_by = self .coach ,
463466 )
464467
465468 self .client .login (username = "learner" , password = DUMMY_PASSWORD )
@@ -488,6 +491,7 @@ def test_learner_course_resume__post_test_active(self):
488491 collection = self .classroom ,
489492 test_type = TestType .Pre ,
490493 closed = True ,
494+ activated_by = self .coach ,
491495 )
492496
493497 UnitTestAssignment .objects .create (
@@ -496,6 +500,7 @@ def test_learner_course_resume__post_test_active(self):
496500 collection = self .classroom ,
497501 test_type = TestType .Post ,
498502 closed = True ,
503+ activated_by = self .coach ,
499504 )
500505
501506 unit , lessons = units [3 ]
@@ -505,6 +510,7 @@ def test_learner_course_resume__post_test_active(self):
505510 collection = self .classroom ,
506511 test_type = TestType .Pre ,
507512 closed = True ,
513+ activated_by = self .coach ,
508514 )
509515
510516 UnitTestAssignment .objects .create (
@@ -513,6 +519,7 @@ def test_learner_course_resume__post_test_active(self):
513519 collection = self .classroom ,
514520 test_type = TestType .Post ,
515521 closed = False ,
522+ activated_by = self .coach ,
516523 )
517524
518525 self .client .login (username = "learner" , password = DUMMY_PASSWORD )
@@ -541,6 +548,7 @@ def test_learner_course_resume__resume_position_first_resource(self):
541548 collection = self .classroom ,
542549 test_type = TestType .Pre ,
543550 closed = True ,
551+ activated_by = self .coach ,
544552 )
545553
546554 resume_lesson , lesson_resources = lessons [0 ]
@@ -575,13 +583,15 @@ def test_learner_course_resume__resume_position(self):
575583 collection = self .classroom ,
576584 test_type = TestType .Pre ,
577585 closed = True ,
586+ activated_by = self .coach ,
578587 )
579588 UnitTestAssignment .objects .create (
580589 course_session = course_session ,
581590 unit_contentnode_id = unit .id ,
582591 collection = self .classroom ,
583592 test_type = TestType .Post ,
584593 closed = True ,
594+ activated_by = self .coach ,
585595 )
586596
587597 for lesson , lesson_resources in lessons :
@@ -602,6 +612,7 @@ def test_learner_course_resume__resume_position(self):
602612 collection = self .classroom ,
603613 test_type = TestType .Pre ,
604614 closed = True ,
615+ activated_by = self .coach ,
605616 )
606617 resume_lesson , lesson_resources = lessons [0 ]
607618 resource_1 = lesson_resources [0 ]
@@ -648,13 +659,15 @@ def test_learner_course_resume__course_complete(self):
648659 collection = self .classroom ,
649660 test_type = TestType .Pre ,
650661 closed = True ,
662+ activated_by = self .coach ,
651663 )
652664 UnitTestAssignment .objects .create (
653665 course_session = course_session ,
654666 unit_contentnode_id = unit .id ,
655667 collection = self .classroom ,
656668 test_type = TestType .Post ,
657669 closed = True ,
670+ activated_by = self .coach ,
658671 )
659672
660673 for lesson , lesson_resources in lessons :
0 commit comments