Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
problem-builder
Commits
d3050f3d
Commit
d3050f3d
authored
Jan 04, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docstrings for all tests
parent
963b4b96
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
tests/test_progression.py
+3
-0
tests/test_quizz.py
+3
-0
No files found.
tests/test_progression.py
View file @
d3050f3d
...
...
@@ -19,6 +19,9 @@ class MentoringProgressionTest(MentoringBaseTest):
self
.
assertEqual
(
warning_link
.
get_attribute
(
'href'
),
link_href
)
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
mentoring
=
self
.
go_to_page
(
'Progression 1'
)
self
.
assertFalse
(
mentoring
.
find_elements_by_css_selector
(
'.warning'
))
...
...
tests/test_quizz.py
View file @
d3050f3d
...
...
@@ -11,6 +11,9 @@ from mentoring.test_base import MentoringBaseTest
class
QuizzBlockTest
(
MentoringBaseTest
):
def
test_quizz_choices_rating
(
self
):
"""
Mentoring quizz should display tips according to user choice
"""
# Initial quizzes status
mentoring
=
self
.
go_to_page
(
'Quizz 1'
)
quizz1
=
mentoring
.
find_element_by_css_selector
(
'fieldset.choices'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment