@@ -27,6 +27,9 @@ def setUp(self):
2727 ['O' , {'label' : 'Other' }],
2828 ],
2929 'submissions_count' : 5 ,
30+ 'max_submissions' : 1 ,
31+ 'private_results' : False ,
32+ 'feedback' : 'My Feedback' ,
3033 }
3134 self .poll_block = PollBlock (
3235 self .runtime ,
@@ -41,6 +44,9 @@ def test_student_view_data(self):
4144 expected_poll_data = {
4245 'question' : self .poll_data ['question' ],
4346 'answers' : self .poll_data ['answers' ],
47+ 'max_submissions' : self .poll_data ['max_submissions' ],
48+ 'private_results' : self .poll_data ['private_results' ],
49+ 'feedback' : self .poll_data ['feedback' ],
4450 }
4551
4652 student_view_data = self .poll_block .student_view_data ()
@@ -86,7 +92,11 @@ def setUp(self):
8692 ['N' , 'No' ],
8793 ['M' , 'Maybe' ]
8894 ],
89- 'submissions_count' : 5
95+ 'submissions_count' : 5 ,
96+ 'max_submissions' : 1 ,
97+ 'private_results' : False ,
98+ 'feedback' : 'My Feedback' ,
99+ 'block_name' : 'My Block Name' ,
90100 }
91101 self .survey_block = SurveyBlock (
92102 self .runtime ,
@@ -101,6 +111,10 @@ def test_student_view_data(self):
101111 expected_survery_data = {
102112 'questions' : self .survery_data ['questions' ],
103113 'answers' : self .survery_data ['answers' ],
114+ 'max_submissions' : self .survery_data ['max_submissions' ],
115+ 'private_results' : self .survery_data ['private_results' ],
116+ 'feedback' : self .survery_data ['feedback' ],
117+ 'block_name' : self .survery_data ['block_name' ],
104118 }
105119
106120 student_view_data = self .survey_block .student_view_data ()
0 commit comments