Commit d3050f3d by Xavier Antoviaque

Add docstrings for all tests

parent 963b4b96
...@@ -19,6 +19,9 @@ class MentoringProgressionTest(MentoringBaseTest): ...@@ -19,6 +19,9 @@ class MentoringProgressionTest(MentoringBaseTest):
self.assertEqual(warning_link.get_attribute('href'), link_href) self.assertEqual(warning_link.get_attribute('href'), link_href)
def test_progression(self): def test_progression(self):
"""
Mentoring blocks after the current step in the workflow should redirect user to current step
"""
# Initial - Step 1 ok, steps 2&3 redirect to step 1 # Initial - Step 1 ok, steps 2&3 redirect to step 1
mentoring = self.go_to_page('Progression 1') mentoring = self.go_to_page('Progression 1')
self.assertFalse(mentoring.find_elements_by_css_selector('.warning')) self.assertFalse(mentoring.find_elements_by_css_selector('.warning'))
......
...@@ -11,6 +11,9 @@ from mentoring.test_base import MentoringBaseTest ...@@ -11,6 +11,9 @@ from mentoring.test_base import MentoringBaseTest
class QuizzBlockTest(MentoringBaseTest): class QuizzBlockTest(MentoringBaseTest):
def test_quizz_choices_rating(self): def test_quizz_choices_rating(self):
"""
Mentoring quizz should display tips according to user choice
"""
# Initial quizzes status # Initial quizzes status
mentoring = self.go_to_page('Quizz 1') mentoring = self.go_to_page('Quizz 1')
quizz1 = mentoring.find_element_by_css_selector('fieldset.choices') quizz1 = mentoring.find_element_by_css_selector('fieldset.choices')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment